eastlakeside / interpy-zh

📘《Python进阶》(Intermediate Python - Chinese Version)
https://py.eastlakeside.cn
Apache License 2.0
6.45k stars 1.33k forks source link

Use print() function in both Python 2 and Python 3 #62

Closed cclauss closed 3 years ago

cclauss commented 4 years ago

Legacy print statements are syntax errors in Python 3 but print() function works as expected in both Python 2 and Python 3.