Giter VIP home page Giter VIP logo

python-start's Introduction

Python-Start

1.Python安装相关

pip源更新

windows下,直接在user目录中创建一个pip目录,如:C:\Users\xx\pip,新建文件pip.ini,内容如下

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = mirrors.aliyun.com

pip命令

python -m pip install -upgrade pip #先更新pip
pip install SomePackage
pip uninstall packageName

基本需要的库

pip install flake8 #安装flake8之后写代码的时候编辑器就会提示哪里出错,代码格式不规范也会提示
pip install yapf   #安装yapf之后在VScode中按Alt+Shift+F即可自动格式化代码
pip install pylint

VS Code安装配置

扩展:
Chinese (Simplified) Language Pack for Visual Studio Code
Python
Code Runner
Markdown All in One
Markdown Preview Enhanced
Markdown Theme Kit
配置:
{
​    "editor.fontSize": 18,
​    "editor.fontFamily": "YaHei Consolas Hybrid",
​    "markdown.preview.fontSize": 18,
​    "markdown.preview.fontFamily": "YaHei Consolas Hybrid",
​    "terminal.integrated.fontSize": 18,
​    "python.formatting.provider": "yapf",
​    "python.linting.flake8Enabled": true
}

python-start's People

Contributors

bergv avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.