Python functions in the comments

python function with comments

A. Functions

Function is to advance Python program designed function

Each function has its own respective corresponding function

Use of basic functions: a function (parameter)

print function

For the output string to the console

print ( "I love the python") print (2019)

It requires quotes output string, a digital output without the quotation marks.

When the print output need to change the contents of row three marks support wrap can also be added to the line break \ n that the content wrap

II. Notes

Use their own language to increase the readability of the code.

Single-line comments: Add comment before #

Multi-line comment: Comments are enclosed in the front-rear three quotes

pycharm comments in the shortcut keys ctrl +?

Guess you like

Origin www.cnblogs.com/CHENGXIANGPY/p/11105906.html