How to write comments in python

python comments in the pound sign: # beginning, the general will add a space after #.

  

# This is a comment
print("Hello, World!")

 

Syntax multi-line comments is three quotes: '' 'or' ''

'' ' 
This is a 
multi-line comment 
' '' 

'' ' 
This is the 
multi-line comments 
"" " 

Print ( " the Hello, World! " )

 

 

   

 

Guess you like

Origin www.cnblogs.com/aisowe/p/11957015.html