Long Int literal - Invalid Syntax?

后端 未结 2 1976
被撕碎了的回忆
被撕碎了的回忆 2020-12-06 11:24

The Python tutorial book I\'m using is slightly outdated, but I\'ve decided to continue using it with the latest version of Python to practice debugging. Sometimes there are

2条回答
  •  执笔经年
    2020-12-06 12:03

    You just need remove L

    fact = 1
    

    Python 3.X integers support unlimited size in contrast to Python 2.X that has a separate type for long integers.

提交回复
热议问题