Python start learning!

Great Python


 

Start learning Python, personal study notes, a little progress every day.

 

Windows10 64 Wei


 

Operating environment. Linux will not use, only use windows, no way.

 

JetBrains PyCharm 2019.1


 

Download a free version of it, is also easy to use.

 

Python 3.7


 

The first installation of Python 3.8, the version found in the course of some third-party plug-ins not keep up, so back to the V3.7.

 

PyQt5 5.14.0


 

Design window, then this is a must have in. Code like nirvana show great God to avoid the bar.

 

Pip install


 

Install third-party packages, regular use. Foreign speed is too slow, simply can not be installed successfully. Domestic use of mirror sites now, pick a line, I use tsinghua, and have not worked well.

Use mirror sites, then create the file:

1 C:\Users\YourName\AppData\Roaming\pip\pip.ini

Contents of the file:

1 [global]
2 index-url = https://pypi.tuna.tsinghua.edu.cn/simple
3 [install]
4 trusted-host=https://pypi.tuna.tsinghua.edu.cn

 

Import


 

Import do not know it, do not mix in Python. Python beginning of each file are similar to the bottom like this.

1 # -*- coding: utf-8 -*-
2 
3 from PyQt5 import QtCore, QtGui, QtWidgets

Guess you like

Origin www.cnblogs.com/qingqingchen/p/12236125.html