帮助https://docs.python.org/2/library/functions.html dir() 函数 D:\pythontest>python Python (v3. , ::) [MSC v. bit (AM D64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>
python中有一个说法:一切皆是对象,怎么理解这句话呢?我们可以通过查看数字,字符串在内存中的表示形式来对这句话有个更深的认识. 那么,怎么查看对象在内存中是什么样的呢?可以先参考一些这篇文章:https://www.cnblogs.com/wujiecong/p/11583540.html 1.python的数字在内存中是什么样的? #python3.7 from ctypes import string_at from sys import getsizeof from binascii