Skip to content

lkl22/CommonTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

概览

图片压缩工具

Android资源文件复制/移动工具:

Android color资源管理工具:

Android 自动化测试预研:

图片预览

算法学习

开发指南

环境配置

1、下载PyCharm

https://www.jetbrains.com/pycharm/download/#section=windows

2、下载安装python3

https://www.python.org/downloads/windows/

3、pip安装需要的库

pip install wheel PyQt5==5.15.7 PyQt5-tools PyQt5-stubs==5.15.6.0 Pyinstaller xlrd xlutils uiautomator2 numpy QScintilla tinify openpyxl python-docx pyperclip 
--index-url https://pypi.tuna.tsinghua.edu.cn/simple/

pip install weditor==0.6.3 matplotlib

py -3.9 -m pip install pyqt5-tools --index-url https://pypi.tuna.tsinghua.edu.cn/simple/

pip install pycryptodomex -i https://pypi.douban.com/simple 

pip install networkx==2.8.7 pydot==1.4.2 matplotlib==3.6.1 

pip install httplib2

pip install chardet

# 模版生成代码
pip install jinja2

pip install pillow

pip install Flask

pip install  Elasticsearch

4、PyCharm配置

设置External Tools External Tools

  • 设置Qt Designer

Name:Qt Designer

Programs:D:\Program Files\Python39\Lib\site-packages\qt5_applications\Qt\bin\designer.exe

Working directory:$ProjectFileDir$

  • 配置PyUIC

Name:PyUIC

Programs:D:\Python\Python38\python.exe

Parameters:-m PyQt5.uic.pyuic  $FileName$ -o $FileNameWithoutExtension$.py

Working directory:$ProjectFileDir$

使用Qt Designer

1、点击 Tools -》External Tools -》Qt Designer 启动我们的Qt Designer

Python项目的打包(Windows)

1、spec文件,见CommonTools.spec

2、pyinstaller CommonTools.spec

参考文献

pycharm如何设置python版本、设置国内pip镜像、添加第三方类库

使用PYINSTALLER打包多文件和目录的PYTHON项目

PyInstaller Manual

Python 教程

Python 正则表达式

Python 3.6.12 文档

Qt for Python

PyQt5 Reference Guide

pyqt5-tools

PYQT5实现控制台显示功能

awesome-adb

uiautomator2

web-editor

python中的subprocess.Popen()使用

https://tinypng.com/developers/reference/python

https://www.iconfont.cn/

使用Python 3从网上下载文件

subprocess --- 子进程管理

这40个Python可视化图表案例,强烈建议收藏!

windows关闭java进程

Disable output buffering

python xlwt写excel格式控制 颜色、模式、编码、背景色