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

 

posted @ 2015-08-26 14:27  Jerry_Chen  阅读(198)  评论(0编辑  收藏  举报