mitmproxy: The Powerful Python Library for HTTP Proxying!

mitmproxy: The Powerful Python Library for HTTP Proxying!

Hello everyone, today I want to introduce a particularly powerful Python library – mitmproxy! It is an intercepting proxy tool that supports HTTP/HTTPS, allowing us to easily monitor and modify network requests. Whether for web scraping or API testing, it can save us a lot of trouble. I have been using it for several years, … Read more

A Beginner’s Guide to Efficiently Using Makefile in Python Projects

A Beginner's Guide to Efficiently Using Makefile in Python Projects

Have you ever had to type a long string of commands just to run a test? Or do you find yourself manually executing several steps every time you start a project? If so, Makefile might be the savior you need. To be honest, I started using Makefile in Python projects because I had used it … Read more

Drawing Regression Analysis Graphs with Python

Drawing Regression Analysis Graphs with Python

Author: Eighth Galaxy – Gugu Email: [email protected] Import Libraries import numpy as np import xarray as xr #import cmaps import pandas as pd #from eofs.standard import Eof import matplotlib.pyplot as plt from scipy import signal from sklearn import preprocessing #from scipy.stats import pearsonr from scipy.stats import linregress import datetime as dt import cartopy.crs as ccrs … Read more

PyTelescope: Create Your Remote Stargazing Tool with Python!

PyTelescope: Create Your Remote Stargazing Tool with Python!

▼ Click the card below to follow me ▲ Click the card above to follow me When it comes to stargazing, many people think of expensive professional equipment and complex operations. But now, I want to share a super cool Python project – PyTelescope. This is a magical tool that allows you to easily control … Read more

Python Tutorial: A Bilingual Reference for PyCharm Installation

Python Tutorial: A Bilingual Reference for PyCharm Installation

Python, Quick Mastery Techniques Write code, research information, ask Baidu Practice, explore, summarize, optimize ★★★★★The creation of this blog is not easy, and my blog does not require rewards or paid knowledge; you can freely learn programming tips.If you have any questions while using the code, feel free to correct and communicate in the comments.Those … Read more

Stop Using Random Strings! Generate Unique IDs with Python’s UUID – System-Wide Uniqueness for Large Projects!

Stop Using Random Strings! Generate Unique IDs with Python's UUID - System-Wide Uniqueness for Large Projects!

😩 Have you encountered these issues? Writing scripts to temporarily save data, worried about filename duplication? Need to generate a unique ID for user registration, but handwritten logic is long and clunky? Want to assign a unique number to each task, but afraid of conflicts? Stop using <span>time.time()</span> and <span>random.randint()</span> to concatenate strings! Python has … Read more

PyGLET: The Magical Wand of Python for Illuminating the Graphics World

PyGLET: The Magical Wand of Python for Illuminating the Graphics World

▼ Click the card below to follow me ▲ Click the card above to follow me PyGLET: The Magical Wand of Python for Illuminating the Graphics World PyGLET is like a dazzling magic wand in the hands of Python programmers, instantly transforming dull code into a vibrant graphical world. This powerful cross-platform library allows us … Read more

Rewriting Solaris Command in Python Reduced Code by 90% and Improved Performance by 17 Times

Rewriting Solaris Command in Python Reduced Code by 90% and Improved Performance by 17 Times

Author: Darren Moffat Translator: Xia Ye Editor: Tian Xiaoxu In the /usr/bin/listusers command, I fixed a memory allocation error that caused issues when the command was converted to 64-bit. After fixing this error, I decided to investigate whether this ancient C code could be improved by converting it to a Python implementation. This C code … Read more

C Language Returns to the Pinnacle in 2020!

C Language Returns to the Pinnacle in 2020!

A few days ago, I accidentally opened the famous programming language ranking website TIOBE. In its latest January programming language ranking, I was surprised to see that C language has won the title of “2019 Programming Language of the Year”. This marks the third time C language has received this honor, following wins in 2008 … Read more