python_2_变量的使用2

''' 多行注释(三个单引号,或者双引号)
gf_of_oldboy="Chen rong hua"#变量的表示办法1,用下划线(老男孩的女朋友)
GfOfOldboy="Chen rong hua"#变量的表示办法1,单词首字母用大写(老男孩的女朋友)
PIE=3333 #用大写表示常量,但也能变化这个值,只是代表
'''
""" 多行注释(三个单引号,或者双引号)
gf_of_oldboy="Chen rong hua"#变量的表示办法1,用下划线(老男孩的女朋友)
GfOfOldboy="Chen rong hua"#变量的表示办法1,单词首字母用大写(老男孩的女朋友)
PIE=3333 #用大写表示常量,但也能变化这个值,只是代表
"""
#多行字符串
msg1='''
print("hello word")

name="Qi Zhiguang"
print("My name is",name)
'''
print(msg1)

msg2='shuaige=Qizhiguang'#(也可用双引号)
print(msg2)

#单引号与多引号区别
msg3="I'm a boy"
msg4='I"m not girl'
print(msg3)
print(msg4)

  

posted @ 2018-01-02 17:58  耐烦不急  阅读(236)  评论(0编辑  收藏  举报