1 print "hello,world"   #打印hello,world
print “1+1”  #打印字符串 1+1 单引号和双引号是单行字符串
print ["1+1" "+" "2+2" " " *2]*2
print ('''This is the first line
        This is the second line
        lont line''')   #三引号是多行字符串,可以直接输入回车,而不需要用\n来表示
print 1/2 #取整数型 输出0
print 6/3 #取整数型 输出2
print 1.0/2.0  #浮点型 输出0.5
print 6.0/3.0 #浮点型 输出2.0
print 6.0%3.0 # %求余运算符 

a = 'tset'
print 'it is a %s' %(a) #%还用在python的格式化输出,打印的结果就是 it is a test
print 2 * 2 * 2 

x = input ("x:")
y = input ("y:")
print x*y

x1 = input("x1:")
y1 = input("y1:")
print x1 + y1

print 2**3  #打印2的3次方
print pow(2,3) #打印2的3次方
print 10+pow(2,3*5)/3.0   #pow() 2的15次方 /3.0 +10