1 #单引号 2 print ‘this is string‘ 3 4 #双引号 5 print "this is string" 6 7 #三引号 - 单引号 8 print ‘‘‘this is first line 9 this is second line‘‘‘ 10 11 #三引号 - 双引号 12 print """this is first line 13 this is second line"""
1 # coding :utf-8 2 print ‘你好世界!‘
1 length = 5 2 breadth = 2 3 area = length * breadth 4 print ‘Area is‘, area 5 print ‘Perimeter is‘, 2 * (length + breadth)
原文:http://www.cnblogs.com/muriel/p/3947064.html