HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Ensure modules, functions, annotation using the correct method and line styles within
Comments in Python has a single-line and multi-line comments:
Python in single-line comments begin with #, for example ::
# 这是一个注释 print("Hello, World!")
Multi-line comments with three single quotes ( '' '), or three double quotes ( "" ") enclose comments, such as:
1, single quotes ( '' ')
#!/usr/bin/python3 ''' 这是多行注释,用三个单引号 这是多行注释,用三个单引号 这是多行注释,用三个单引号 ''' print("Hello, World!")
2, double quotation marks ( '' ')
#!/usr/bin/python3 """ 这是多行注释,用三个单引号 这是多行注释,用三个单引号 这是多行注释,用三个单引号 """ print("Hello, World!")