Python ->> 第一个Python程序

#coding:utf-8

#print 'input your name, please'

#name = raw_input('请输入你的名字:'.decode('utf-8').encode('gbk'))

#print '你好!'.decode('utf-8').encode('gbk'), name

print 1.23e9

print -1.23e9+1

print 1.*5/2

print 5/2

print 'I\'am Jerry'

print "I\'am Jerry"

print "I\'am Jerry\' chen"

print "I'am Jerry' chen"

print "I'am \nJerry chen"

print "I'am \\nJerry chen"

print r'I\'am \\nJerry chen'

print '''jerry
chen
chan''' print r'''jerry \n
chen
chan''' if 3 > 3 is True:
print True
else:
print False a = 'ABC'
b = a
a = 'XYZ'
print(b,a) print 10//3
上一篇:HDU 4611 - Balls Rearrangement(2013MUTC2-1001)(数学,区间压缩)


下一篇:LCA的五种解法