pycharm错误中的值没有错误的错误

pycharm Error with no mistake in the value in the error

我在 pycharm 上尝试了 python long()。 令我惊讶的是,它有时有效,有时却无效。

这里是错误

47282403038107662437532352993237672764098837162957292306008999337426727315883576761859649562858426653153678910738970617803055844492933792849924063437779685758693448498279910053656435887527114035456482

Traceback (most recent call last):
  File "/media/qwaszx/6436-3061/the project/cmd client.py", line 5, in     <module>
print the_project.snd_password('asadafa',99999,'127.0.0.1','/media/qwaszx/6436-3061/the project/clientfile' ,'127.0.0.1').sign_up()

  File "/media/qwaszx/6436-3061/the project/the_project.py", line 348, in __init__
self.tp.recived.update(exchange_keys(self.tp.thirdside_ip_adr,self.tp.saved,dest).recive_encryption_keys())#recieve keys for encryption

  File "/media/qwaszx/6436-3061/the project/the_project.py", line 299, in __init__
self.saved={i: long(str(saved[i]))for i in saved}

  File "/media/qwaszx/6436-3061/the project/the_project.py", line 299, in <dictcomp>
self.saved={i: long(str(saved[i]))for i in saved}

ValueError: invalid literal for long() with base 10: '47282403038107662437532352993237672764098837162957292306008999337426727315883576761859649562858426653153678910738970617803055844492933792849924063437779685758693448498279910053656435887527114035456482'

第一个数字是在错误数字上做 naive long 之后。

我尝试使用 int() 并发生了同样的事情(使用 int 代替)

有人知道吗?谢谢

难道是因为我用的是ubuntu?

错误是 pycharm 如果它太长,则不会在错误中显示 str 的结尾。