PYTHON Learning 0003: user interaction and comments ---- 2019-6-4

Python注释Multi following three lines:
1, using ctrl + / multi-line comment:
firstly to select the paragraph to be annotated, and then press ctrl + /, can achieve multi-line code comments. Pressed again ctrl + / can cancel comment
2, using shift + # key in the beginning of each line: Like Notes single line input shift + # in front of each row
3, enter '' '' '' or "" "" "" to be inserted in the intermediate code comments: enter '' '' '' or "" "" "", the code to be inserted in the middle of the comment, the comment may also be achieved the effect of multiple lines of code.
The role of the comment is to show what the code is running to facilitate future maintenance.
Comment principle: do not add annotations to all the code, mainly to feel important or inconvenient to understand part of the code to add a comment. Comments can use Chinese or English, but never Pinyin.

Python3 用inputImplement user input, INPUT () function accepts a standard input data, returns string (string) type.

Guess you like

Origin blog.51cto.com/13543767/2404679