Python 3中的注释 和字符串与int 转换

单行注释:#

多行注释:3个单引号''' 或者3个多引号"""

#!/usr/bin/python3 
'''
这是多行注释,用三个单引号
这是多行注释,用三个单引号 
这是多行注释,用三个单引号
'''
print("Hello, World!") 
#!/usr/bin/python3 
"""
这是多行注释,用三个双引号
这是多行注释,用三个双引号 
这是多行注释,用三个双引号
"""
print("Hello, World!") 

2、int 转string :str(int);

string 转 int : int (string),string 为数字。

猜你喜欢

转载自blog.csdn.net/qq_36206652/article/details/80212991