python
13 篇文章
python
python基础
python print() print输出不换行 print(a,b,c) python编码 unicode print 输出到文件 f = open(r'a.txt','a+') print("s…
python-django-manage.py
一个让你用各种方式管理 Django 项目的命令行工具 参数说明 [auth] changepassword createsuperuser 创建访问admin应用的超级用户账号,这里需要输入用户名、…
python正则
所有关于正则表达式的操作都使用python标准库中的 re 模块 python中的正则表达式大致分为以下几部分: 1. 元字符 2. 模式 3. 函数 4. re 内置对象用法 5. 分组用法 6. …
python常用模块-profile
代码性能解析,显示运行时间情况 示例; import profile def r(): print(12222*123344) def ra(): print(1) def rb(): r() ra(…
python常用模块-Matplotlib
Matplotlib是一个Python 2D绘图库,它可以在各种平台上以各种硬拷贝格式和交互式环境生成出具有出版品质的图形
python代码片段-系统调用相关
获取进程、硬件等基本运行信息 import psutil #进程运行情况 import platform #包含系统信息查询函数 import os import logging # 硬件信息 svm…
python常用模块
目录 time random os sys shutil shelve xml yamal configparser hashlib logging math urlib getpass subpro…
python打包成可执行文件
这篇文章写的不错 https://blog.csdn.net/qq_41004932/article/details/118995838 安装 pip install PyInstaller pip3…
python日志
logging ... loguru 参考自: https://blog.csdn.net/weixin_44777680/article/details/119329911
python技巧
打包文件 pyinstaller -F xxx.py #–icon=图标路径 #-F 打包成一个exe文件 #-w 使用窗口,无控制台 #-c 使用控制台,无窗口 #-D 创建一个目录,里面包含exe…
python3安装uwsgi报错
报错提示: WARNING: Running pip install with root privileges is generally not a good idea. Try __main__.p…
pip install MySQL-python报错解决
python2环境使用pip安装MySQL-python==1.2.5报错解决 报错如下 # pip install MySQL-python==1.2.5 Collecting MySQL-pyth…
dokcer-python环境基础镜像制作
定制自己的python环境基础镜像,便于后续python项目快速打成镜像 参考 https://blog.csdn.net/imiyuer/article/details/106003736 环境 已…