摘要:
```
def get_pid(pname): process = psutil.process_iter() for pro in process: str_pro = str(pro) pat = re.compile(pname) if pat.search(str_pro): pid = str_pro... 阅读全文
摘要:
``` coding:utf 8 PyMsgBox A simple, cross platform, pure Python module for JavaScript like message boxes. Al Sweigart al@inventwithpython.com Modified 阅读全文
摘要:
```
import os
import fnmatch def get_c_path(): for drive in ('C:\\', 'D:\\'): for dirpath, dirnames, filenames in os.walk(drive): for name in filenames: if fnm... 阅读全文
摘要:
``` On Unix: Access with On Window: Access with from gevent.server import StreamServer def handle(socket, address): socket.send("Hello from a telnet!\ 阅读全文