Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import time
>>> b_time = bytes(int(time.time()))
>>> print(b_time)
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
print(b_time)
File "C:\Users\gilot\AppData\Local\Programs\Python\Python35\lib\idlelib\
PyShell.py", line 1343, in write
return self.shell.write(s, self.tags)
OverflowError: cannot serialize a string larger than 4GiB
>>>
在 process explorer 里面, pythonw.exe 的 private bytes 确实飙升到了 7.3G (我的电脑内存只有 8G )
操作系统是 win10 pro ,有大概 10 秒钟的时间整个系统没有反应