Vis*_*and 6 python input python-2.7
如何在Python 2.7中使用"long int"输入?
PS我尝试了各种各样的变化n=(*(raw_input()))
但无济于事.
n = int(raw_input())
Run Code Online (Sandbox Code Playgroud)
这会将输入转换为整数.由于Python采用任意精度算法,因此我们不必担心数字有多大.
>>> n = int(raw_input())
100000000000000
>>> n
100000000000000L
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
6912 次 |
最近记录: |