
python
qq_39941918
这个作者很懒,什么都没留下…
展开
-
python 创建服务器
def yingyong(environ, start_response): start_response('200 OK', [('Content-Type', 'text/html')]) return [b'<h1>How Are!</h1>'] from wsgiref.simple_server import make_server httpd = make_server('',900,yingyong) httpd.serve_forever()原创 2021-03-23 17:56:52 · 150 阅读 · 0 评论 -
python sqlite3 查看所有的数据表
import sqlite3 def GetTables(db_file = 'test2.db'): try: conn = sqlite3.connect(db_file) cur = conn.cursor() cur.execute("select name from sqlite_master where type='table' order by name") print( cur.fetchall()) excep转载 2021-03-12 21:23:12 · 1961 阅读 · 0 评论 -
Python打包成exe可执行文件
一、安装pyinsatller 打开命令行窗口,输入如下指令 pip3 install pyinstaller 然后静待pyinstaller自动安装好 二、使用pyinstaller打包Python程序 进入命令行窗口,然后使用cd指令进入程序文件夹,示例: cd G:\工程储存\Python工程\love ②输入以下指令,开始打包 pyinstaller -F -w (-i icofile) ...原创 2019-03-26 09:50:33 · 183 阅读 · 0 评论 -
python常用数据包
1)Numpy 【Python包】:Python:Numpy基础:数组和矢量运算 2)Pandas 【Python包】:Python:Pandas基础:结构化数据处理 【Python包】:Python:merge: 数据规整化:清理、转换、合并、重塑 【Python包】:Python:GroupBy: 数据聚合与分组运算 3)Matplotlib 【Python包】...转载 2019-03-27 08:38:03 · 2862 阅读 · 0 评论