通过ctypes 类库中的win32方法GetProcessMemoryInfo()获得当前进程的内存使用情况.该函数可以在32或者64位,python2.6+及python3.x之上都能有用. """Functions for getting memory usage of Windows processes.""" __all__ = ['get_current_process', 'get_memory_info', 'get_memory…
Python2和Python3的一些语法区别 python 1.print 在版本2的使用方法是: print 'this is version 2 也可以是 print('this is version 2') 但到了3,就只能加上括号,像一个函数一样来使用 print: print('this is version 3') 2.input 2里面有两个用来从命令行接受输入的函数:input 和raw_input. value = input() input接收的是一个值或变量,也就是说,你如…