python3.x print话语
python3.x print语句 strHello Hello World print (strHello)Hello World strHello the
python3.x print语句
>>> strHello = 'Hello World'
>>> print (strHello)
Hello World
>>> strHello = "the length of (%s) is %d" %('Hello World',len('Hello World'))>>> print (strHello)the length of (Hello World) is 11
#%x --- hex 十六进制#%d --- dec 十进制#%o --- oct 八进制 >>> lst = [1,2,3,4,'python']>>> print (lst)[1, 2, 3, 4, 'python']>>> import sys>>> sys.stdout.write('Hello World')Hello World