-
Notifications
You must be signed in to change notification settings - Fork 17
python
Hanlei Qin edited this page Jul 18, 2024
·
44 revisions
Python is a programming language that lets you work quickly and integrate systems more effectively. >>>Learn More
- learn-python Playground and cheatsheet for learning Python. Collection of Python scripts that are split by topics and contain code examples with explanations.
- OnlinePythonTutor, Visualize Python, Java, JavaScript, TypeScript, Ruby, C, and C++ code execution in your Web browser http://pythontutor.com/
- What the f*ck Python! 😱 Exploring and understanding Python through surprising snippets.
- A Byte of Python
- Introduction to Programming in Python: a textbook for a first course in computer science for the next generation of scientists and engineers
- ⭐Full Stack Python is an open source book that explains technical concepts in plain language.
- Hitchhiker's Guide to Python: Python best practices guidebook, written for humans.
- 《Python Cookbook》 3rd Edition Translation
- 《Python 3 源码剖析》
- Python 练习册
- 101 NumPy Exercises for Data Analysis (Python)
-
jackfrued/Python-100-Days Python - 100天从新手到大师
- Make English as your working language. Practice makes perfect. All experience comes from mistakes. Don't be one of the leeches. Either stand out or kicked out.
- Requests is an elegant and simple HTTP library for Python, built for human beings.
- Pillow, The friendly PIL fork (Python Imaging Library) https://python-pillow.org
- openpyxl is a Python library to read/write Excel 2010 xlsx/xlsm/xltx/xltm files.
- pywebview is a lightweight cross-platform wrapper around a webview component that allows to display HTML content in its own native GUI window.
- Twisted is an event-based framework for internet applications, supporting Python 2.7 and Python 3.5+.
- Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
- Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived connection to each user.
- Flask is a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. It began as a simple wrapper around Werkzeug and Jinja and has become one of the most popular Python web application frameworks.
- FastAPI framework, high performance, easy to learn, fast to code, ready for production
- BeeWare allows you to write your app in Python and release it on multiple platforms. No need to rewrite the app in multiple programming languages. It means no issues with build tools, environments, compatibility, etc.
-
Kivy: Open source UI framework written in Python, running on Windows, Linux, macOS, Android and iOS
- python-for-android is a packaging tool for Python apps on Android. You can create your own Python distribution including the modules and dependencies you want, and bundle it in an APK along with your own code.
- Kivy for iOS: Toolchain for compiling Python / Kivy / other libraries for iOS
- wxPython's Project Phoenix. A new implementation of wxPython, better, stronger, faster than he was before. Just like "Classic" wxPython, Phoenix wraps the wxWidgets C++ toolkit and provides access to the user interface portions of the wxWidgets API, enabling Python applications to have a native GUI on Windows, Macs or Unix systems, with a native look and feel and requiring very little (if any) platform specific code.
- DearPyGui: A GPU Accelerated Python GUI Framework
-
fbs is the fastest way to create a Python GUI. It solves common pain points such as packaging and deployment. Based on Python and Qt, fbs is a lightweight alternative to Electron.
- tutorial for creating Python/Qt GUIs with fbs
- vnpy 基于Python的开源量化交易平台开发框架 http://www.vnpy.com
- scrapy, An open source and collaborative framework for extracting the data you need from websites. In a fast, simple, yet extensible way.
- pyspider, A Powerful Spider(Web Crawler) System in Python. http://docs.pyspider.org/
- Portia is a tool that allows you to visually scrape websites without any programming knowledge required. With Portia you can annotate a web page to identify the data you wish to extract, and Portia will understand based on these annotations how to scrape data from similar pages.
- Newspaper3k: Article scraping & curation, News, full-text, and article metadata extraction in Python 3. Advanced docs: https://goo.gl/VX41yK
- Grab is a python web scraping framework. Grab provides a number of helpful methods to perform network requests, scrape web sites and process the scraped content ...
-
pyenv lets you easily switch between multiple versions of Python. It's simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well.
-
pyenv install -l
List all available versions pyenv install 2.7.18
-
pyenv versions
Show the current Python version(s) and its origin pyenv global 2.7.18
python --version
- FAQ: after
pyenv global system
got:pyenv: python: command not found ...
on macOS 12+ln -s /usr/local/bin/python3 /usr/local/bin/python
-
-
SimpleHTTPServer
-
python -m SimpleHTTPServer 8000
ORpython3 -m http.server
-
- Python's many command-line utilities
- Python 为什么?
- Python 的练手项目有哪些值得推荐?
- What are the best game engines for Python?
- pyinstaller打包的exe太大?
-
How to correctly close files in Python
- Use a
with
statement which will ensure the file is closed when the code that uses it finishes running. This holds true even if an exception is thrown.with open('filename', 'w') as f: f.write('Hello world!')
- Use a
-
list.sort()
使用 ASCII 字符顺序,字典序排序:list.sort(key=str.lower)
- PyInstaller打包后某些文件未包含进去,需要用--add-data或--add-binary。
格式:pyinstaller --add-data="SRC;DST"
例如将第三方库zhconv/zhcdict.json打包到zhconv目录下:
# cmd:
pyinstaller --add-data="%LocalAppData%\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\zhconv\zhcdict.json;zhconv" -F translate.py --distpath "."
# powershell:
pyinstaller --add-data="$env:LocalAppData\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\zhconv\zhcdict.json;zhconv" -F translate.py --distpath "."
- Awesome Python, A curated list of awesome Python frameworks, libraries, software and resources https://awesome-python.com/
- awesome-python-cn Python资源大全中文版,包括:Web框架、网络爬虫、模板引擎、数据库、数据可视化、图片处理等,由伯乐在线持续更新。http://jobbole.github.io/awesome-python-cn/
- PythonShare Python初学者(零基础学习Python、Python入门)书籍、视频、资料、社区推荐
- awesome-spider - 爬虫集合
- Free Python Courses List
- Legally Free Python Books List
- Free Python Books
芝士就是力量,法国就是培根!
Knowledge is power -- Francis Bacon
人要是没有梦想,和咸鱼有什么分别?光标请勿在最高司令官身上停留!
- mathematics
- algorithm
- theory-of-computation
- compiler
- operating-system
- networks
- security
- artificial-intelligence
- computer-graphics