笔记9:常用数据类型
整数
x=5
y=5
z=x+y
print (z)
浮点数
f=5.20
l=5.30
a=f+l
print(a)
字符串
str='hello 51zxw'
print(str)
转义字符
\n换行
print("hello \n51zxw")
\\双斜杠转义成单斜杠
print('c:\\python35')
# my name is 'Jack’ and “you”
print('My name is \'Jack\' and \”you\”')
布尔值
t=True
f=False
print(t and f)
赞 (0)
