#整数
x=5
y=5
z=x+y
print(z) #打印出来为10
print(x+y) #打印出来也为10
#浮点数
a=5.20
b=5.30
c=a+b
print(c) #打印出的结果为相加的10.5
#字符串
str='Hello,Word' #可以是单引号也可以是双引号
print(str) #打印为字符串
#转义字符
print("Hello \n Word") # \n表示换行
print('c:\\python35') # \\代表绝对路径 转义后为c:\python35
# My name is 'jack' and "you" 要输入带单引号或双引号的语句
print("My name is \'jack\' and \"you\"") #输入单引号使用\'字符\' 双引号\"字符\"
#布尔值
t=True
f=False
print(t and f) # and连接有一个为假就为False
print(t or f) # or连接有一个为真就为True