Python 3 print without parenthesis

前端 未结 8 1739
一整个雨季
一整个雨季 2020-11-30 01:27

The print used to be a statement in Python 2, but now it became a function that requires parenthesis in Python 3.

Is there anyway to suppress these par

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 02:05

    No. That will always be a syntax error in Python 3. Consider using 2to3 to translate your code to Python 3

提交回复
热议问题