Comments and string to int conversion in Python 3

Single line comment: #

Multi-line comments: 3 single quotes ''' or 3 multiple quotes """

#!/usr/bin/python3 '''

This is a multi-line comment, enclosed in three single quotes
This is a multi-line comment, enclosed in three single quotes
This is a multi-line comment, enclosed in three single quotes
'''print("Hello, World!")
 
#!/usr/bin/python3 """

This is a multi-line comment, enclosed in three double quotes
This is a multi-line comment, enclosed in three double quotes
This is a multi-line comment, enclosed in three double quotes
"""print("Hello, World!")
 

2. Convert int to string: str(int);

string to int: int (string), string is a number.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325730766&siteId=291194637