Python ->> 第一个Python程序

时间:2023-03-08 20:16:46
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