1、python3 执行print时会报错

>>> print "fdsf"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("fdsf")?
>>> SyntaxError: Missing parentheses in call to 'print'. Did you mean print("fdsf")
SyntaxError: invalid syntax
>>> print ("fdf")
fdf

原因:python3 的print要加括号