python3错误小结01

希望可以把记录遇到的坑变成习惯,逐渐更有编程经验~
 

NOTE:

在python3中使用raw-input的时候,总是要在程序开头加上:
from pip._vendor.distlib.compat import raw_input

(becasuse raw_input was renamed to input in python 3 )

def g(x=0, y):

...     return x+y

...

  File "<stdin>", line 1

SyntaxError: non-default argument follows default argument

猜你喜欢

转载自blog.csdn.net/Olivia_Linwei/article/details/84933205