Python-变量

一、变量

变量:存东西用的

例如:

name = 'xiaohei' (name 就是变量名)

变量名不能以数字开头,

print (name)

age= 18(数字和小数点可以不用引号)

定义的变量为let'sgo,引号要成双成对,中间的有单引号,外面的就用双引号

wold = " let'sgo"

wole = ''' "你好",'回来咯' "'

原文地址:https://www.cnblogs.com/xxxxyanyan/p/13718235.html