随笔分类 -  Python

摘要:文本 1. string:通用字符串操作 2. re:正则表达式操作 3. difflib:差异计算工具 4. textwrap:文本填充 5. unicodedata:Unicode字符数据库 6. stringprep:互联网字符串准备工具 7. readline:GNU按行读取接口 8. rl 阅读全文
posted @ 2019-01-16 13:42 Soul>>null 阅读(546) 评论(0) 推荐(0)
摘要:一、PyQt 介绍 1)官网链接:http://pyqt.sourceforge.net/Docs/PyQt5/modules.html#ref-module-index 2)参考文档链接:https://maicss.gitbooks.io/pyqt5/content/%E4%BB%8B%E7%B 阅读全文
posted @ 2019-01-04 15:31 Soul>>null 阅读(263) 评论(0) 推荐(0)
摘要:一、epoll epoll 参考链接: https://www.cnblogs.com/Alanpy/articles/5125986.html epoll 参考链接: https://www.cnblogs.com/maociping/p/5132583.html 二、 selectors 模块 阅读全文
posted @ 2018-12-06 12:28 Soul>>null 阅读(145) 评论(0) 推荐(0)
摘要:一、参考出处 参考链接:https://docs.python.org/3/library/threading.html#module-threading 二、threading模块介绍 1)threading模块通过 Thread 创建线程 方式一: #方式一 from threading imp 阅读全文
posted @ 2018-12-05 15:03 Soul>>null 阅读(243) 评论(0) 推荐(0)
摘要:一、Python Multiprocessing 功能介绍 multiprocessing模块的功能众多:支持子进程、通信和共享数据、执行不同形式的同步,提供了Process、Queue、Pipe、Lock等组件。 1、Multiprocessing .Process类的介绍 参数介绍 方法介绍: 阅读全文
posted @ 2018-12-03 16:47 Soul>>null 阅读(267) 评论(0) 推荐(0)
摘要:一、Python基础篇(80题) 1、你为什么学习Python? 2、通过什么途径学习的Python? 3、Python和Java、PHP、C、C#、C++等其他语言的对比? 4、简述解释型和编译型编程语言? 5、Python解释器种类以及特点? 6、位和字节的关系? 7、b、B、KB、MB、GB 阅读全文
posted @ 2018-11-28 14:32 Soul>>null 阅读(238) 评论(0) 推荐(0)
摘要:一、参考链接 1、源码包下载·链接: https://pypi.org/search/?q=multiprocessing+ 2、源码包 链接:https://pan.baidu.com/s/1jFZVcoJgCwZNwVcjhauXyQ 提取码:kfm9 3、参考出处 链接: https://bl 阅读全文
posted @ 2018-11-28 10:11 Soul>>null 阅读(615) 评论(0) 推荐(0)
摘要:一、环境安装 windows:pip install numpy scipy matplotlib #pip install http://effbot.org/downloads/Imaging-1.1.7.tar.gzpip install pillowpip install requests 阅读全文
posted @ 2018-07-23 15:54 Soul>>null 阅读(230) 评论(0) 推荐(0)
摘要:python 第三方模块 paramiko 模块 一、paramiko 模块介绍 参考链接:https://www.cnblogs.com/qianyuliang/p/6433250.html paramiko是用python语言写的一个模块,遵循SSH2协议,支持以加密和认证的方式,进行远程服务器 阅读全文
posted @ 2018-05-08 20:21 Soul>>null 阅读(246) 评论(0) 推荐(0)
摘要:(1)abs(), 绝对值或复数的模 (2)all() 接受一个迭代器,如果迭代器的所有元素都为真,那么返回True,否则返回False (3)any() 接受一个迭代器,如果迭代器里有一个元素为真,那么返回True,否则返回False (4)ascii() 调用对象的__repr__()方法,获得 阅读全文
posted @ 2018-02-27 22:16 Soul>>null 阅读(354) 评论(0) 推荐(0)
摘要:class room: def __init__(self,area=120,usedfor='sleep'): self.area = area self.usedfor = usedfor def display(self): print("this is my house")class bab 阅读全文
posted @ 2018-02-27 10:26 Soul>>null 阅读(182) 评论(0) 推荐(0)