python打印问题1:
>>> print '123'
SyntaxError: Missing parentheses in call to 'print'
解决:
>>> print (123)
123
>>> print ('hello')
hello
>>>
注:python版本问题,python2支持 print “xxx” ,python3需要使用print("xxx")
python打印问题1:
>>> print '123'
SyntaxError: Missing parentheses in call to 'print'
解决:
>>> print (123)
123
>>> print ('hello')
hello
>>>
注:python版本问题,python2支持 print “xxx” ,python3需要使用print("xxx")