Tagged articles
5000 articles
Page 40 of 50
Python Programming Learning Circle
Python Programming Learning Circle
Sep 2, 2021 · Fundamentals

Five Beginner Python Projects: Rock‑Paper‑Scissors Game, Random Password Generator, Dice Simulator, Automatic Email Sender, and Alarm Clock

This article presents five beginner-friendly Python projects— a command‑line Rock‑Paper‑Scissors game, a random password generator, a dice‑rolling simulator, an automatic email sender, and an alarm clock—each with clear objectives, implementation tips, and complete source code examples.

BeginnerProjectsPython
0 likes · 7 min read
Five Beginner Python Projects: Rock‑Paper‑Scissors Game, Random Password Generator, Dice Simulator, Automatic Email Sender, and Alarm Clock
Byte Quality Assurance Team
Byte Quality Assurance Team
Sep 1, 2021 · Backend Development

Using Polling Instead of Sleep in Python for Asynchronous Tasks

The article explains why fixed sleep calls are inefficient for asynchronous operations, introduces polling as a flexible alternative, provides Python code examples with the polling library, discusses advantages and disadvantages, and presents decorator and generic‑function abstractions for reusable polling logic.

AsynchronousDecoratorPolling
0 likes · 7 min read
Using Polling Instead of Sleep in Python for Asynchronous Tasks
Python Programming Learning Circle
Python Programming Learning Circle
Aug 31, 2021 · Backend Development

Python Web Crawler for Downloading Drama Links from cn163.net

This article describes how to build a Python web crawler that automatically generates numeric URLs, checks their validity, extracts download links for TV dramas from cn163.net, saves them to text files, and discusses practical challenges such as regex parsing, filename restrictions, and multithreading performance.

Pythoncrawlingfile-handling
0 likes · 7 min read
Python Web Crawler for Downloading Drama Links from cn163.net
360 Smart Cloud
360 Smart Cloud
Aug 31, 2021 · Artificial Intelligence

Understanding Convolution, Convolutional Neural Networks, and Their Implementation in Image Processing

This article explains the mathematical concept of 2‑D convolution, demonstrates its use for image filtering with examples such as blurring and Sobel edge detection, introduces artificial neural networks and back‑propagation, and details the design, training, and performance of convolutional neural networks for tasks like Sobel filter learning and MNIST digit recognition, including full Python code examples.

CNNConvolutionDeep Learning
0 likes · 25 min read
Understanding Convolution, Convolutional Neural Networks, and Their Implementation in Image Processing
Liangxu Linux
Liangxu Linux
Aug 29, 2021 · Operations

Boosting a Python Service to 50k QPS: My Step‑by‑Step Performance Tuning

Through a detailed case study, the author documents the process of optimizing a Python‑based web module—identifying bottlenecks, redesigning architecture with Redis queues, tuning MySQL, adjusting Linux TCP settings, and iteratively load‑testing until achieving 50,000 QPS with sub‑70 ms latency and zero errors.

BackendOperationsOptimization
0 likes · 9 min read
Boosting a Python Service to 50k QPS: My Step‑by‑Step Performance Tuning
MaGe Linux Operations
MaGe Linux Operations
Aug 29, 2021 · Backend Development

How Python’s singledispatch Simplifies Custom JSON Serialization

This article explores Python’s underused singledispatch feature from PEP 443 as a clean, extensible way to serialize arbitrary objects to JSON, comparing it with traditional json module approaches and showing how it avoids cumbersome if‑elif‑else logic while keeping classes untouched.

BackendPythonfunctools
0 likes · 6 min read
How Python’s singledispatch Simplifies Custom JSON Serialization
dbaplus Community
dbaplus Community
Aug 28, 2021 · Artificial Intelligence

Is AI Really Intelligent? Exploring Machine Learning, Neural Networks & Deep Learning

The article demystifies AI by explaining that current artificial intelligence is merely automated computation, then walks through fundamental machine‑learning concepts such as exhaustive search, linear regression, neural‑network neurons, activation functions, network structures, training calculations, and concludes with a Python implementation of a three‑layer neural network.

AIDeep LearningPython
0 likes · 15 min read
Is AI Really Intelligent? Exploring Machine Learning, Neural Networks & Deep Learning
FunTester
FunTester
Aug 27, 2021 · Fundamentals

Customizing Allure Test Reports with Pytest – A Step‑by‑Step Tutorial

This tutorial explains how to install Allure‑pytest, create a simple Dianping search test case, generate the default report, and progressively enhance it with custom titles, detailed steps, fixture‑based setup/teardown, hierarchical features, severity levels, and rich HTML descriptions, all using Python code snippets.

AllureAllure CustomizationPython
0 likes · 9 min read
Customizing Allure Test Reports with Pytest – A Step‑by‑Step Tutorial
Sohu Tech Products
Sohu Tech Products
Aug 25, 2021 · Backend Development

Scrapy Tutorial: Installation, Project Structure, Basic Usage, and Real‑World Example

This article provides a comprehensive, step‑by‑step guide to the Scrapy web‑crawling framework, covering its core components, installation methods, project layout, spider creation, data extraction techniques, pagination handling, pipeline configuration, and how to run the crawler to collect and store data.

CrawlerData ExtractionPython
0 likes · 13 min read
Scrapy Tutorial: Installation, Project Structure, Basic Usage, and Real‑World Example
Tencent Cloud Developer
Tencent Cloud Developer
Aug 24, 2021 · Artificial Intelligence

Design and Implementation of a High‑Scoring Tetris AI for the Tencent Geek Challenge

Zheng Lin‑kai’s record‑breaking Tetris AI for the Tencent Geek Challenge combines a two‑layer breadth‑first search—stage‑level pruning in Python and fast round‑level BFS in C++—with a heuristic that rewards high score, low occupied cells, and smooth board transitions, enabling a 1,413,876‑point performance.

C++Monte Carlo Tree SearchPython
0 likes · 10 min read
Design and Implementation of a High‑Scoring Tetris AI for the Tencent Geek Challenge
Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
Aug 20, 2021 · Artificial Intelligence

Training a DQN AI to Master 2048: Step-by-Step Guide

This article walks through using reinforcement learning with a Deep Q‑Network in PyTorch to train an AI agent that plays the 2048 puzzle game, covering environment setup, algorithm implementation, network design, and a short training run that achieves a score of 256.

2048AIDQN
0 likes · 8 min read
Training a DQN AI to Master 2048: Step-by-Step Guide
Ops Development Stories
Ops Development Stories
Aug 18, 2021 · Information Security

How to Extract IPs from PCAP and Perform Common Network Attacks with Scapy

This guide demonstrates how to use Python's Scapy library to extract IP addresses from PCAP files, sniff usernames and passwords from mail traffic, discover live hosts via SYN packets, launch MAC address table flooding attacks, and conduct ARP spoofing for man‑in‑the‑middle attacks, providing complete code examples.

ARP spoofingMAC FloodMITM
0 likes · 7 min read
How to Extract IPs from PCAP and Perform Common Network Attacks with Scapy
Python Programming Learning Circle
Python Programming Learning Circle
Aug 17, 2021 · Fundamentals

Python Tips: Variable Swapping, Comprehensions, Counter, JSON Pretty‑Print, FizzBuzz, and More

This article presents a collection of practical Python techniques, including variable swapping without a temporary variable, using dictionary and set comprehensions, leveraging the Counter class for counting, pretty‑printing JSON, solving FizzBuzz concisely, inline conditional expressions, list slicing, dictionary get method, and generating combinations with itertools.

CollectionsComprehensionsJSON
0 likes · 8 min read
Python Tips: Variable Swapping, Comprehensions, Counter, JSON Pretty‑Print, FizzBuzz, and More
Python Crawling & Data Mining
Python Crawling & Data Mining
Aug 16, 2021 · Operations

Master You-Get: Download Videos, Audio, and More with Python

This article introduces You-Get, a Python‑based command‑line tool for downloading videos, audio, images and subtitles from many sites, explains how to install it, shows its key options, demonstrates format‑specific downloads, playlist handling, proxy usage, and cookie‑based authentication.

PythonTutorialVideo Download
0 likes · 13 min read
Master You-Get: Download Videos, Audio, and More with Python
Python Programming Learning Circle
Python Programming Learning Circle
Aug 11, 2021 · Databases

Generating One Billion SQLite Rows in Under a Minute: Python, PyPy, and Rust Performance Comparison

A programmer needed to create a billion‑row SQLite test database within a minute, found a naïve Python script unbearably slow, applied batch inserts and SQLite PRAGMA tweaks, then compared CPython, PyPy, and Rust implementations, ultimately achieving sub‑minute runtimes with Rust and highlighting best‑practice optimizations.

BenchmarkingDatabasePerformance
0 likes · 6 min read
Generating One Billion SQLite Rows in Under a Minute: Python, PyPy, and Rust Performance Comparison
Test Development Learning Exchange
Test Development Learning Exchange
Aug 9, 2021 · Artificial Intelligence

Basic Face Detection with OpenCV in Python

This article introduces the fundamentals of face detection using Python's OpenCV library, explaining the underlying concepts of computer vision and providing a complete, step‑by‑step script that loads an image, converts it to grayscale, detects faces with a Haar cascade, and visualizes the results.

AIFace DetectionOpenCV
0 likes · 2 min read
Basic Face Detection with OpenCV in Python
Python Programming Learning Circle
Python Programming Learning Circle
Aug 9, 2021 · Backend Development

How to Choose the Fastest JSON Library for Python: A Practical Benchmarking Guide

This article explains a systematic process for evaluating and selecting the most suitable high‑performance JSON library for Python, covering the need assessment, benchmark definition, filtering by additional requirements, and detailed benchmark results that highlight orjson as the fastest option for small‑message encoding while discussing trade‑offs such as safety, customizability, and ecosystem support.

BenchmarkingJSONPerformance
0 likes · 5 min read
How to Choose the Fastest JSON Library for Python: A Practical Benchmarking Guide
Python Programming Learning Circle
Python Programming Learning Circle
Aug 6, 2021 · Fundamentals

A Comprehensive List of Commonly Used Pandas Functions Categorized by Purpose

This article presents a curated collection of 100 frequently used pandas functions, organized into six categories—statistical aggregation, data cleaning, data selection, plotting and element‑wise operations, time‑series utilities, and miscellaneous helpers—providing concise Chinese explanations for each function’s purpose.

Data AnalysisData cleaningPython
0 likes · 10 min read
A Comprehensive List of Commonly Used Pandas Functions Categorized by Purpose
Python Programming Learning Circle
Python Programming Learning Circle
Aug 6, 2021 · Fundamentals

Essential Pandas Functions for Data Analysis in Python

This article introduces Python's pandas library as a powerful open‑source alternative to MATLAB for data modeling competitions, covering basic, intermediate, and advanced functions—including data I/O, inspection, logical filtering, visualization, aggregation, and integration with tqdm for progress tracking—complete with code examples.

Data AnalysisPythonpandas
0 likes · 7 min read
Essential Pandas Functions for Data Analysis in Python
360 Quality & Efficiency
360 Quality & Efficiency
Aug 6, 2021 · Databases

Introduction to Time Series Databases and InfluxDB 2.0: Architecture, Features, Installation, and Practical Applications

This article explains what time series databases are, introduces InfluxDB as the leading TSDB, describes its TICK architecture and storage engine, provides step‑by‑step installation and configuration of InfluxDB and Telegraf, demonstrates visualization, JMeter integration, and Flux queries in Python, and highlights the rapid market growth of TSDBs.

FluxInfluxDBPython
0 likes · 11 min read
Introduction to Time Series Databases and InfluxDB 2.0: Architecture, Features, Installation, and Practical Applications
ByteDance Dali Intelligent Technology Team
ByteDance Dali Intelligent Technology Team
Aug 5, 2021 · Mobile Development

Design and Implementation of a Lightweight Startup Information Collection and Visualization Framework

This article presents a lightweight framework for constructing, collecting, and visualizing Android startup task information, replacing heavy systrace data with concise logs, Kotlin data structures, AspectJ instrumentation, and Python scripts that generate readable timelines and discrete charts to aid performance analysis.

AndroidAspectJPerformance
0 likes · 10 min read
Design and Implementation of a Lightweight Startup Information Collection and Visualization Framework
Efficient Ops
Efficient Ops
Aug 4, 2021 · Backend Development

How I Boosted a Python Service to 50k QPS: Real‑World Performance Tuning

This article documents a step‑by‑step performance optimization of a Python web module, covering requirement analysis, environment setup, load‑testing results, database and TCP bottleneck identification, caching strategies, kernel tuning, and the final achievement of 50,000 QPS with low latency.

Performance OptimizationPythonRedis
0 likes · 9 min read
How I Boosted a Python Service to 50k QPS: Real‑World Performance Tuning
MaGe Linux Operations
MaGe Linux Operations
Jul 30, 2021 · Fundamentals

Unlock Python’s Hidden Attribute System: __dict__, property, and __getattr__ Explained

This article explains how Python stores object attributes in layered __dict__ structures, distinguishes class and instance attributes, demonstrates attribute lookup, shows how to modify attributes directly or via property, and introduces dynamic attribute creation using __getattr__ and related special methods.

AttributesObject-OrientedProperty
0 likes · 8 min read
Unlock Python’s Hidden Attribute System: __dict__, property, and __getattr__ Explained
Python Programming Learning Circle
Python Programming Learning Circle
Jul 30, 2021 · Frontend Development

Building a NetEase Cloud Music Player with Python and PyQt5

This article walks through creating a full‑featured desktop music player using Python 3.6, PyQt5 for the GUI, and requests for web scraping, covering environment setup, dependencies, key functionalities, technical challenges, and a reflective conclusion on the development experience.

Desktop AppPythonmusic player
0 likes · 3 min read
Building a NetEase Cloud Music Player with Python and PyQt5
Python Programming Learning Circle
Python Programming Learning Circle
Jul 29, 2021 · Fundamentals

Python Word Automation and Data Reporting Tutorial with python-docx, win32com, matplotlib, and xlrd

This tutorial walks through setting up a Python environment, installing libraries, creating and editing Word documents with python-docx, converting files and generating PDFs using win32com, extracting Excel data with xlrd, visualizing scores with matplotlib, and automating batch document generation with docx-mailmerge.

Pythonautomationpython-docx
0 likes · 19 min read
Python Word Automation and Data Reporting Tutorial with python-docx, win32com, matplotlib, and xlrd
Python Programming Learning Circle
Python Programming Learning Circle
Jul 28, 2021 · Backend Development

Python Requests Tutorial: GET, POST, HTTPS, File Upload/Download, Timeout, Authentication, Session, Token, and Test Automation Framework

This article provides a comprehensive Python tutorial covering how to send GET and POST requests, handle HTTPS verification, perform file uploads and downloads, set request timeouts, use basic and token authentication, manage sessions, generate signatures, and organize a test automation framework with configuration, common utilities, test data, test cases, reporting, and execution scripts.

API testingBackendPython
0 likes · 12 min read
Python Requests Tutorial: GET, POST, HTTPS, File Upload/Download, Timeout, Authentication, Session, Token, and Test Automation Framework
Python Crawling & Data Mining
Python Crawling & Data Mining
Jul 24, 2021 · Fundamentals

Master Pandas: A Step‑by‑Step Guide to Data Analysis with Python

This comprehensive tutorial introduces Pandas—the powerful Python library for data manipulation and analysis—covers installation, data import, inspection, cleaning, indexing, selection, sorting, grouping, transformation, statistical functions, visualization, and exporting, all illustrated with clear code examples and visual outputs.

Data AnalysisJupyter NotebookPython
0 likes · 18 min read
Master Pandas: A Step‑by‑Step Guide to Data Analysis with Python
Test Development Learning Exchange
Test Development Learning Exchange
Jul 21, 2021 · Artificial Intelligence

Drawing Shapes on Images with OpenCV in Python

This tutorial demonstrates how to use OpenCV in Python to read an image and draw basic shapes such as rectangles and circles by specifying coordinates, dimensions, colors, and line thickness, then display the edited image in a window.

Drawing ShapesOpenCVPython
0 likes · 2 min read
Drawing Shapes on Images with OpenCV in Python
Test Development Learning Exchange
Test Development Learning Exchange
Jul 20, 2021 · Artificial Intelligence

Resizing Images with Python and OpenCV

This article demonstrates how to use Python's OpenCV library to read an image, display its original dimensions, resize it to a specified size, save the resized image, and handle user input to close the display windows.

OpenCVPythonResize
0 likes · 2 min read
Resizing Images with Python and OpenCV
Efficient Ops
Efficient Ops
Jul 18, 2021 · Operations

Master Ansible in 16 Visual Steps

Ansible, a rapidly popular open‑source automation tool built on Python, simplifies batch system configuration, program deployment, and command execution with thousands of built‑in modules, offering a beginner‑friendly yet powerful solution for modern operations teams.

AnsibleConfiguration ManagementOperations
0 likes · 3 min read
Master Ansible in 16 Visual Steps
Test Development Learning Exchange
Test Development Learning Exchange
Jul 17, 2021 · Artificial Intelligence

Face Recognition with OpenCV and Python

This tutorial explains the concept of facial recognition, describes how it works, and provides step‑by‑step instructions and code examples for implementing face detection and identification using OpenCV and Python, including installation, basic image handling, and a complete sample script.

OpenCVPythoncomputer vision
0 likes · 4 min read
Face Recognition with OpenCV and Python
MaGe Linux Operations
MaGe Linux Operations
Jul 17, 2021 · Fundamentals

Unlock Beautiful Terminal Output in Python with Rich

This tutorial introduces the Rich Python library, covering its cross‑platform compatibility, installation steps, enhanced print functions, custom console usage, logging, tables, progress bars, markdown rendering, syntax highlighting, and traceback formatting, all illustrated with clear code examples and screenshots.

PythonTerminalcode
0 likes · 10 min read
Unlock Beautiful Terminal Output in Python with Rich
MaGe Linux Operations
MaGe Linux Operations
Jul 13, 2021 · Artificial Intelligence

Build a Batch Image Translation Tool with Youdao OCR API in Python

This article walks through creating a Python desktop demo that uses Youdao's OCR translation API to batch‑process cosmetic product label images, covering API credential setup, request parameters, signature generation, core code snippets, and a summary of the translation results.

APIOCRPython
0 likes · 10 min read
Build a Batch Image Translation Tool with Youdao OCR API in Python
Python Crawling & Data Mining
Python Crawling & Data Mining
Jul 13, 2021 · Artificial Intelligence

What Python Reveals About Public Reaction to “Chinese Doctor” – A Data‑Driven Review Analysis

Using Python, the author collected and visualized Douban and Weibo comments on the film “Chinese Doctor,” showing rating distributions, keyword word clouds, and fan sentiment, and compares the 2021 movie with the 2019 documentary to illustrate audience perception of the pandemic drama.

Data AnalysisDoubanNLP
0 likes · 5 min read
What Python Reveals About Public Reaction to “Chinese Doctor” – A Data‑Driven Review Analysis
21CTO
21CTO
Jul 12, 2021 · Backend Development

Master Scrapy: From Basics to Advanced Spider Development

This comprehensive guide introduces Scrapy's architecture, explains its core components and data flow, teaches XPath fundamentals, walks through installation, project creation, spider coding, item and pipeline definitions, middleware customization, pagination handling, and essential settings for effective Python web crawling.

CrawlerPythonScrapy
0 likes · 14 min read
Master Scrapy: From Basics to Advanced Spider Development
MaGe Linux Operations
MaGe Linux Operations
Jul 12, 2021 · Backend Development

Boost Python API Testing Speed with Async httpx: A Practical Guide

This article explains what coroutines are, compares them with threads, outlines when to use them, introduces the async‑capable httpx library, shows installation and sample code, and demonstrates a performance test where asynchronous requests cut execution time by about 73% compared to synchronous requests.

BackendPerformancePython
0 likes · 7 min read
Boost Python API Testing Speed with Async httpx: A Practical Guide
Python Programming Learning Circle
Python Programming Learning Circle
Jul 10, 2021 · Fundamentals

Understanding Shallow and Deep Copy in Python

This article explains Python's shallow and deep copy mechanisms, demonstrates their differences with code examples, visual diagrams, and discusses when to use each approach, highlighting performance and memory considerations in software development.

Pythoncopydeep copy
0 likes · 5 min read
Understanding Shallow and Deep Copy in Python
Python Programming Learning Circle
Python Programming Learning Circle
Jul 7, 2021 · Frontend Development

Python Seat Reservation System with PySide2 GUI and Command‑Line Tools

This article presents a complete Python‑based seat reservation system that uses PySide2 to build an interactive graphical interface for selecting and booking seats, stores configuration and occupancy data in JSON files, and provides command‑line utilities for checking in, checking out, making reservations, and handling temporary leaves, illustrating both front‑end UI design and back‑end logic in a single project.

JSONPythonbooking
0 likes · 20 min read
Python Seat Reservation System with PySide2 GUI and Command‑Line Tools
360 Quality & Efficiency
360 Quality & Efficiency
Jul 2, 2021 · Backend Development

Integrating Scrapy with Selenium for Dynamic Web Page Crawling

This guide explains how to combine Scrapy and Selenium to scrape dynamically rendered web pages, covering installation, project setup, middleware configuration, Selenium driver handling, and code examples that demonstrate a complete end‑to‑end crawling workflow.

Dynamic PagesPythonScrapy
0 likes · 12 min read
Integrating Scrapy with Selenium for Dynamic Web Page Crawling
Byte Quality Assurance Team
Byte Quality Assurance Team
Jun 30, 2021 · Fundamentals

Understanding Teardown and Idempotency in Pytest for Automated Testing

This article explains the concept of teardown and idempotency in automated testing, illustrates single‑thread and concurrent scenarios, and demonstrates various Pytest teardown techniques—including function, class, module, fixture yield, request.addfinalizer, and object‑oriented approaches—providing practical code examples for reliable test cleanup.

IdempotencyPythonTeardown
0 likes · 9 min read
Understanding Teardown and Idempotency in Pytest for Automated Testing
Python Programming Learning Circle
Python Programming Learning Circle
Jun 30, 2021 · Backend Development

Comparison of Seven Popular Python Web Frameworks

This article introduces seven open‑source Python web frameworks—Django, Flask, Scrapy, Tornado, Web2py, Weppy, and Bottle—detailing their main features, typical use cases, and the key advantages and disadvantages of each to help developers choose the most suitable framework for their projects.

DjangoPythonScrapy
0 likes · 8 min read
Comparison of Seven Popular Python Web Frameworks
Python Programming Learning Circle
Python Programming Learning Circle
Jun 29, 2021 · Fundamentals

Top Python IDEs and Code Editors: Features, Pros, Cons, and Compatibility

This article provides a comprehensive overview of the most popular Python IDEs and code editors—including PyCharm, Visual Studio Code, Sublime Text, Vim, Emacs, and many others—detailing their main features, plugins, compatibility across operating systems, advantages, disadvantages, and download links to help developers choose the tool that best fits their workflow and project requirements.

IDEPythoncode editor
0 likes · 10 min read
Top Python IDEs and Code Editors: Features, Pros, Cons, and Compatibility

Comprehensive UI Automation Framework for the Dali Smart Homework Lamp: Challenges, Solutions, and Future Directions

This article details a comprehensive UI automation framework for the Dali Smart Homework Lamp, covering business context, product features, testing challenges, automated script generation, modular case design, multi-device coordination, error analysis, and future directions for intelligent UI validation.

PythonTesting frameworkUI automation
0 likes · 17 min read
Comprehensive UI Automation Framework for the Dali Smart Homework Lamp: Challenges, Solutions, and Future Directions
Python Crawling & Data Mining
Python Crawling & Data Mining
Jun 29, 2021 · Fundamentals

Master Python Dictionary Comprehensions: Concise Tricks and Real‑World Examples

Learn how Python dictionary comprehensions let you create and transform dictionaries efficiently, with clear syntax explanations, multiple examples—including basic usage, conditional filters, if‑else logic, and nested comprehensions—plus visual output screenshots and practical code snippets to boost your coding productivity.

Code ExamplesConditional LogicPython
0 likes · 7 min read
Master Python Dictionary Comprehensions: Concise Tricks and Real‑World Examples
DataFunTalk
DataFunTalk
Jun 28, 2021 · Fundamentals

Bayesian A/B Testing with PyMC3: A Practical Guide

This article introduces the motivation and logic behind A/B testing, highlights common misunderstandings of p‑values, and demonstrates how Bayesian A/B testing using PyMC3 can provide intuitive probability statements about which variant performs better, complete with Python code examples.

A/B testingBayesian statisticsPyMC3
0 likes · 12 min read
Bayesian A/B Testing with PyMC3: A Practical Guide