问题:

print "hello" SyntaxError: Missing parentheses in call to 'print'

 

解决:

python3取消了这种用法。使用 print('hello"),这种来输出。
python3 语法 和 python2 已经变得有些差别了。
python3中,去除了print语句,加入print()函数实现相同的功能。

备注:parentheses :parenthesis的名词复数, 圆括号,插入语,插曲;

 

相关文章:

  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-16
  • 2021-08-03
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
相关资源
相似解决方案