Summarize the 29 operating difficulties of learning python


People who are new to Python will always face this or that problem. During my time learning Python, I summarized my 29 questions as follows:

1 Switch between disk and disk in cmd directly D or d:

2 find the current disk or file directory directly dir

3 want to go to a folder under a disk, use cd space target file cd p

4 Write the first letter of the file and press tab to autocomplete. If there is more than one p, then press tab to switch between them.

5 d: Cut dir to find the directory cd into the target file (equivalent to double-click)

6 go up a layer of cd .. take two layers of cd ../.. (with or without spaces)

7 Use python to open a pre-written txt with notepad first open python f:\Demo\hello.txt this code can

8 What type of suffix should be used for what kind of file?

9 Every time you want to find the python path is too much trouble, you can directly call the program by adding python to the environment variable, my computer - properties - advanced system settings - advanced - environment variables - find path - Add python's path to it

10 Add any program to the environment variable. Click the program icon right--Properties--Copy 'Targets'--add the target to path (the semicolon must be in English state, and then copy, without full copying. Cut it down), open cmd, enter paste, and open the program.

11 The specific variables should be descriptive. For example, if mike is a name name='mike', people can see that it is a name and habit.

12 variable naming when there are two words can be separated by the underscore _ student_number

13 Constants are represented by all uppercase variable names.

Enclosed in quotes as a string, he will occupy a position in memory, and the variable name does not account, it points to a string in memory

15 del delete variables del age can be manually demolished or pointing to other memory

16 If you want to print Chinese in py2x vision, you need to add u'' in front of it to change the type to unicode.

17 notepad++ copy current line ctrl+D

18 must be saved in cmd in order to run correctly on notepad++

19 find the file path in the cmd use tab key to complete, in each disk can play pathon directly to run the program, also behind the tab

20 input('str') then str: this composition interaction

21 cmd error line corresponds to notepad++

22 There is a row operation in the pad, the cursor should be at the end of the row (end) or on this line

23 judging equality as == = assignment

24 Add a sentence to the end of each sentence:

Judging which code to execute next by indentation

25 tab !=(not equal) 4 spaces

26 else can't appear alone to be at the same level as if at the same level

27 It is best to hit a tab automatically into 4 spaces (the original tab and 4 spaces are not the same, to empty spaces, tabs are tab, but the official does not recommend tab), the tab for tab pad + + set the preference language Tab settings are converted to spaces

28 View Display Symbols Show Spaces and Tabs

29 elif as multiple conditional determiners between if and else

Stator Cleating

Stator Core assembly as a important process, there are kinds of technologies to assemble the stator core. Different sizes of stator cores have different technological processes and application fields. For example, small-sized stator cores are usually assembled by interlocking, and the outer diameter is usually less than 200mm. Large-sized stators are assembled in different ways depending on the motor design, such as stator core by cleating and staor core by welding. We are able to process all methods for stator core assembly based on customers' requirements.

Stator Core By Cleating,Splint Stator Core,Generator Stator Core,Stator Core Of Induction Motor

Henan Yongrong Power Technology Co., Ltd , https://www.hnyongrongglobal.com