NameError: global name 'long' is not defined

前端 未结 1 1922
执笔经年
执笔经年 2021-02-01 12:16

I have a Python version 3.3.0 and I am not sure why it does not let me do long for b and m here... I tried to look up the answers on here and but nothing helped...thanks

1条回答
  •  清酒与你
    2021-02-01 12:50

    In Python 3.x, use int instead of long.

    From What’s New In Python 3.0, Integers:

    • PEP 237: Essentially, long renamed to int. That is, there is only one built-in integral type, named int; but it behaves mostly like the old long type.

    0 讨论(0)
提交回复
热议问题