Tagged articles

Python

5000 articles · Page 19 of 50
Test Development Learning Exchange
Test Development Learning Exchange
Nov 29, 2024 · Fundamentals

Python File Handling: Common Text Processing Scripts

This article presents a comprehensive collection of Python file handling examples, covering basic reading and writing, appending, line extraction, file copying, moving, deletion, directory management, and advanced text processing techniques such as searching, replacing, and statistical analysis, all illustrated with clear code snippets.

Pythonfile I/Ofile management
0 likes · 17 min read
Python File Handling: Common Text Processing Scripts
Test Development Learning Exchange
Test Development Learning Exchange
Nov 28, 2024 · Artificial Intelligence

Introduction to Deep Learning with Keras: Building and Training a Simple Neural Network

This tutorial introduces the fundamentals of deep learning, covering neural network basics, Keras fundamentals, and provides a step‑by‑step Python example that loads the Iris dataset, preprocesses data, builds, compiles, trains, evaluates, visualizes, and predicts with a simple neural network model.

AIKerasNeural Network
0 likes · 7 min read
Introduction to Deep Learning with Keras: Building and Training a Simple Neural Network
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 28, 2024 · Artificial Intelligence

Step-by-Step Guide to Registering Volcengine API, Configuring .cloudiderc, and Running LangChain Quickstart

This tutorial provides detailed instructions for registering the Volcengine API, locating and editing the .cloudiderc file, setting environment variables, installing the Volcengine Python SDK, and troubleshooting common issues when running the LangChain quick‑start examples on a cloud IDE.

AIAPILangChain
0 likes · 6 min read
Step-by-Step Guide to Registering Volcengine API, Configuring .cloudiderc, and Running LangChain Quickstart
Test Development Learning Exchange
Test Development Learning Exchange
Nov 26, 2024 · Artificial Intelligence

Comprehensive Python Tutorial for Data Preprocessing, Feature Engineering, Model Training, Evaluation, and Deployment

This tutorial walks through consolidating the first ten days of learning by covering data preprocessing, feature engineering, model training with linear regression, decision tree, and random forest, model evaluation using cross‑validation, and finally saving and loading the best model, all illustrated with complete Python code examples.

Pythondata preprocessingfeature engineering
0 likes · 9 min read
Comprehensive Python Tutorial for Data Preprocessing, Feature Engineering, Model Training, Evaluation, and Deployment
DevOps Engineer
DevOps Engineer
Nov 26, 2024 · Fundamentals

Differences Between pip and pipx in Python Package Management

pip is the general-purpose Python package installer for libraries and scripts, while pipx specializes in isolated installation of command‑line tools, each with its own virtual environment; the article compares their features, use cases, limitations, and provides guidance on when to choose each.

CLI toolsPythonpackage management
0 likes · 5 min read
Differences Between pip and pipx in Python Package Management
Test Development Learning Exchange
Test Development Learning Exchange
Nov 25, 2024 · Artificial Intelligence

Complete Machine Learning Project: Data Collection, Cleaning, Feature Engineering, Model Training, Evaluation, and Deployment

This tutorial walks through a complete machine learning project in Python, covering data collection, cleaning, feature engineering, training linear regression, decision tree, and random forest models, evaluating them with cross‑validation, and finally deploying the best model using joblib.

Python
0 likes · 8 min read
Complete Machine Learning Project: Data Collection, Cleaning, Feature Engineering, Model Training, Evaluation, and Deployment
Baidu Geek Talk
Baidu Geek Talk
Nov 25, 2024 · Artificial Intelligence

PP-ShiTuV2: A General Image Recognition Pipeline in PaddleX

PP‑ShiTuV2, a PaddleX pipeline that integrates subject detection, deep feature encoding, and vector retrieval, delivers 91 % recall@1 on AliProducts, surpasses earlier models by over 20 points, runs efficiently on GPU and CPU, and offers simple installation, quick‑start code, and full fine‑tuning support.

PP-ShiTuV2PaddleXPython
0 likes · 8 min read
PP-ShiTuV2: A General Image Recognition Pipeline in PaddleX
Test Development Learning Exchange
Test Development Learning Exchange
Nov 24, 2024 · Fundamentals

Common Python Magic Methods and Their Usage

This article introduces Python's most frequently used magic methods—including __new__, __init__, __str__, __add__, __len__, __getitem__, __setitem__, __delitem__, __contains__, __bool__, __iter__, comparison operators, arithmetic operators, and context manager methods—explaining their purpose, typical use cases, and providing clear code examples for each.

MagicMethodsOOPPython
0 likes · 11 min read
Common Python Magic Methods and Their Usage
System Architect Go
System Architect Go
Nov 24, 2024 · Artificial Intelligence

Building a Web Voice Chatbot with Whisper, llama.cpp, and LLM

This article demonstrates how to build a web‑based voice chatbot by integrating Whisper speech‑to‑text, llama.cpp LLM inference, and WebSocket communication, detailing both the frontend JavaScript implementation and the Python FastAPI backend, along with Docker deployment and example code.

FastAPIJavaScriptLLM
0 likes · 10 min read
Building a Web Voice Chatbot with Whisper, llama.cpp, and LLM
Test Development Learning Exchange
Test Development Learning Exchange
Nov 23, 2024 · Operations

Comprehensive Python Automation Scripts for Common Tasks

This article presents a collection of practical Python scripts covering file management, web scraping, email sending, Excel handling, data cleaning, image processing, system monitoring, PDF manipulation, OCR, database interaction, social media posting, testing, and cloud storage, each with clear descriptions and ready‑to‑run code examples.

Data ProcessingPythonWeb Scraping
0 likes · 12 min read
Comprehensive Python Automation Scripts for Common Tasks
Python Programming Learning Circle
Python Programming Learning Circle
Nov 23, 2024 · Fundamentals

Advanced Python Concepts: Exception Handling, Collections, itertools, Lambdas, Decorators, Generators, Threads, Dunder Methods, Logging, and Context Managers

This article introduces ten advanced Python topics—including exception handling, the collections and itertools modules, lambda functions, decorators, generators, threading, dunder methods, logging, and context managers—providing explanations, code examples, and practical tips to help developers deepen their programming skills and prepare for interviews.

CollectionsPythonadvanced
0 likes · 13 min read
Advanced Python Concepts: Exception Handling, Collections, itertools, Lambdas, Decorators, Generators, Threads, Dunder Methods, Logging, and Context Managers
Python Programming Learning Circle
Python Programming Learning Circle
Nov 23, 2024 · Fundamentals

Useful Python Tricks and Advanced Techniques

This article presents a collection of lesser‑known Python tricks—including string cleaning with translate, iterator slicing via itertools.islice, skipping header lines, keyword‑only functions, custom context managers, memory‑saving __slots__, resource limits, import control, and total_ordering—to help developers write cleaner, more efficient code.

Memory OptimizationPythonResource Limits
0 likes · 10 min read
Useful Python Tricks and Advanced Techniques
Test Development Learning Exchange
Test Development Learning Exchange
Nov 22, 2024 · Artificial Intelligence

Introduction to Data Modeling with Scikit-Learn

This article provides a comprehensive guide to using Scikit-Learn for data modeling, covering linear regression and decision tree algorithms, including data preparation, model training, evaluation metrics, and visualization techniques for predictive analysis.

Data ScienceDecision TreesPython
0 likes · 4 min read
Introduction to Data Modeling with Scikit-Learn
JD Cloud Developers
JD Cloud Developers
Nov 22, 2024 · Frontend Development

How Playwright Transforms Car‑Insurance UI Testing: From Recording to Automated Reporting

This article explains how Playwright can automate the UI testing of a car‑insurance H5 application, covering background challenges, tool installation, recording test cases, API response verification, building a full automated testing pipeline, and a demo that reduces manual effort while improving reliability.

Car InsuranceJavaPlaywright
0 likes · 10 min read
How Playwright Transforms Car‑Insurance UI Testing: From Recording to Automated Reporting
Practical DevOps Architecture
Practical DevOps Architecture
Nov 21, 2024 · Information Security

Python Script to Retrieve Domain SSL Certificate Expiration Date and Remaining Days

This article presents a Python script that retrieves a domain's SSL certificate information, parses its start and expiration dates, converts them to datetime objects, and calculates the remaining days until the certificate expires, providing a simple command‑line tool for monitoring certificate validity.

Pythonautomationcertificate
0 likes · 3 min read
Python Script to Retrieve Domain SSL Certificate Expiration Date and Remaining Days
Test Development Learning Exchange
Test Development Learning Exchange
Nov 21, 2024 · Artificial Intelligence

Data Preprocessing: Standardization, Normalization, and Missing Value Imputation with Python

This tutorial demonstrates how to perform essential data preprocessing techniques—including standardization, min‑max normalization, and various missing‑value imputation methods—using pandas and scikit‑learn in Python, providing code examples and explanations to help you prepare datasets for machine‑learning models.

PythonStandardizationmissing value imputation
0 likes · 6 min read
Data Preprocessing: Standardization, Normalization, and Missing Value Imputation with Python
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 20, 2024 · Artificial Intelligence

Resolving 02_DocQA.py Errors and Using LangChain to Call Large Models Locally

This guide explains how to fix the ArkNotFoundError in the 02_DocQA.py script by configuring a Doubao‑embedding endpoint, setting up a Conda environment with the latest LangChain packages, and provides step‑by‑step code examples for invoking both Zhipu glm‑4 and Volcano large language models via LangChain.

EmbeddingLangChainPython
0 likes · 9 min read
Resolving 02_DocQA.py Errors and Using LangChain to Call Large Models Locally
Test Development Learning Exchange
Test Development Learning Exchange
Nov 19, 2024 · Fundamentals

Advanced Pandas Tutorial: Multi‑Index and apply Method

This tutorial demonstrates how to use Pandas' advanced features, including creating and manipulating multi‑level indexes, selecting data with hierarchical keys, resetting and sorting indexes, and applying custom functions to columns and rows using the apply method, with comprehensive code examples.

Data AnalysisMulti-IndexPython
0 likes · 5 min read
Advanced Pandas Tutorial: Multi‑Index and apply Method
Python Programming Learning Circle
Python Programming Learning Circle
Nov 19, 2024 · Databases

Overview of Lightweight Python Databases and Their Usage

This article surveys several lightweight Python databases—including PickleDB, TinyDB, ZODB, Durus, Buzhug, Gadfly, and PyTables—detailing their main features, typical use cases, cautions, and providing basic code examples to help developers choose and apply the right storage solution for small‑scale or prototype projects.

Data StorageNoSQLObject Persistence
0 likes · 23 min read
Overview of Lightweight Python Databases and Their Usage
Model Perspective
Model Perspective
Nov 18, 2024 · Fundamentals

Explore Four Innovative Python Charts to Elevate Your Data Visualizations

This article introduces four innovative Python chart types—Radar Chart, Treemap, Ternary Plot, and Joy Plot—explaining their concepts, typical applications such as performance evaluation and market analysis, and providing complete code examples to help data analysts create compelling visualizations.

Data VisualizationJoy PlotPython
0 likes · 8 min read
Explore Four Innovative Python Charts to Elevate Your Data Visualizations
Test Development Learning Exchange
Test Development Learning Exchange
Nov 16, 2024 · Artificial Intelligence

Basic Operations with NumPy Arrays in Python

This tutorial introduces NumPy array creation, manipulation, and fundamental mathematical operations, providing step‑by‑step code examples for importing the library, generating arrays with various functions, reshaping, indexing, slicing, and computing mean, variance, and standard deviation.

Array OperationsData ScienceNumPy
0 likes · 6 min read
Basic Operations with NumPy Arrays in Python
Architecture and Beyond
Architecture and Beyond
Nov 16, 2024 · Artificial Intelligence

ComfyUI Architecture Overview: Initialization, Node System, Execution Flow, Cache Mechanism and Usage Limits

This article provides a comprehensive technical overview of ComfyUI, an open‑source, node‑based Stable Diffusion UI, detailing its modular initialization steps, node system design, execution pipeline, hierarchical cache strategies, resource management, error handling, API interfaces, and practical usage limits.

AI image generationCache systemComfyUI
0 likes · 25 min read
ComfyUI Architecture Overview: Initialization, Node System, Execution Flow, Cache Mechanism and Usage Limits
Test Development Learning Exchange
Test Development Learning Exchange
Nov 15, 2024 · Fundamentals

Python File I/O Operations Tutorial

This tutorial covers essential Python file operations including opening/closing files, reading/writing text files, and various file manipulation techniques with practical code examples.

Code ExamplesData ProcessingProgramming Fundamentals
0 likes · 4 min read
Python File I/O Operations Tutorial
Test Development Learning Exchange
Test Development Learning Exchange
Nov 13, 2024 · Fundamentals

Python Fundamentals: String, List, Dictionary Operations and Common Techniques

This article provides a comprehensive Python tutorial covering essential string manipulations, list and dictionary operations, file handling, exception handling, performance measurement, and classic algorithmic examples such as palindrome checking, prime testing, and Fibonacci generation, each illustrated with clear code snippets.

AlgorithmsPythonfundamentals
0 likes · 20 min read
Python Fundamentals: String, List, Dictionary Operations and Common Techniques
Test Development Learning Exchange
Test Development Learning Exchange
Nov 11, 2024 · Fundamentals

20 Practical Tips for Handling JSON Data in Python

These 20 practical Python tips demonstrate how to import the json module, serialize and deserialize data, read and write JSON files, format output, handle dates, Unicode, special characters, nested structures, large files, and error handling, enabling more efficient and flexible JSON processing.

Data ProcessingJSONPython
0 likes · 8 min read
20 Practical Tips for Handling JSON Data in Python
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Nov 11, 2024 · Fundamentals

How Does the Python VM Capture Exceptions?

The article explains Python's exception handling implementation, detailing how the virtual machine executes try/except/else/finally blocks, the bytecode instructions generated for each clause, the static exception table used for fast dispatch, and the effects of return and del statements on control flow and object lifetimes.

PythonTracebackbytecode
0 likes · 19 min read
How Does the Python VM Capture Exceptions?
Test Development Learning Exchange
Test Development Learning Exchange
Nov 10, 2024 · Fundamentals

20 Essential Pandas Data Processing Methods with Code Examples

This article provides a comprehensive overview of 20 essential Pandas data processing methods with detailed code examples covering statistics, data cleaning, transformation, filtering, merging, grouping, sorting, reshaping, aggregation, window functions, time series analysis, conditional selection, indexing, slicing, visualization, type conversion, data filling, filtering, renaming, and import/export operations.

Data AnalysisData ProcessingData Visualization
0 likes · 16 min read
20 Essential Pandas Data Processing Methods with Code Examples
Python Programming Learning Circle
Python Programming Learning Circle
Nov 9, 2024 · Fundamentals

A One-Month Python Learning Roadmap: Weekly Plans, Projects, and Career Preparation

This article presents a detailed four‑week, 28‑day Python learning roadmap that guides beginners from core concepts to real‑world projects, covering fundamentals, data structures, OOP, web development, databases, testing, and job‑search preparation, with daily time allocations and resource suggestions.

BackendPythoncareer-prep
0 likes · 10 min read
A One-Month Python Learning Roadmap: Weekly Plans, Projects, and Career Preparation
Test Development Learning Exchange
Test Development Learning Exchange
Nov 9, 2024 · Fundamentals

15 Common Python Variable Assignment Techniques

This article demonstrates fifteen practical ways to assign values to variables in Python, ranging from simple direct assignment and augmented operators to unpacking, dictionary unpacking, slicing, conditional expressions, and various comprehension forms, each accompanied by code examples and their outputs.

Code ExamplesProgramming FundamentalsPython
0 likes · 9 min read
15 Common Python Variable Assignment Techniques
Test Development Learning Exchange
Test Development Learning Exchange
Nov 8, 2024 · Fundamentals

Common Python Built‑in Functions with Examples

This article introduces a collection of frequently used Python built‑in functions, explains their purpose, provides concise code examples for each, and shows the corresponding output to help readers write more efficient and readable Python code.

Code ExamplesProgramming FundamentalsPython
0 likes · 14 min read
Common Python Built‑in Functions with Examples
Alibaba Cloud Observability
Alibaba Cloud Observability
Nov 8, 2024 · Cloud Native

Enable Python Probe for LLM Observability on Alibaba Cloud ACK

This guide explains how to integrate Alibaba Cloud's Python probe into a Kubernetes (ACK) environment to monitor large language model (LLM) applications, covering prerequisites, installation steps, Dockerfile modifications, resource permissions, and sample Python code for both server and client components.

ARMSCloud NativeDocker
0 likes · 16 min read
Enable Python Probe for LLM Observability on Alibaba Cloud ACK
Test Development Learning Exchange
Test Development Learning Exchange
Nov 8, 2024 · Fundamentals

Comprehensive Guide to Common NumPy Array Operations

This article presents a thorough tutorial on NumPy array creation, indexing, reshaping, concatenation, splitting, copying, slicing, statistical analysis, boolean indexing, sorting, unique values, broadcasting, merging, insertion, deletion, transposition, flattening, multi‑dimensional merging, random sampling, dot and outer products, cumulative operations, and differences, providing code examples for each to boost data‑processing efficiency in Python.

Array OperationsData ProcessingNumPy
0 likes · 12 min read
Comprehensive Guide to Common NumPy Array Operations
Python Crawling & Data Mining
Python Crawling & Data Mining
Nov 8, 2024 · Fundamentals

Extracting Courier Addresses with Python: A Step‑by‑Step Guide

This article walks through a practical Python solution for parsing a list of courier records, extracting province information, grouping entries by location using dictionaries, and optionally applying regular expressions and pandas for further analysis, all illustrated with clear code examples and output screenshots.

DictionariesPythonWeb Scraping
0 likes · 11 min read
Extracting Courier Addresses with Python: A Step‑by‑Step Guide
Python Programming Learning Circle
Python Programming Learning Circle
Nov 7, 2024 · Backend Development

9 Best Practices for Enterprise Python Development

This article presents nine essential best‑practice steps for building robust, maintainable Python backend applications, covering virtual environments, dependency management, logging, configuration files, testing, asynchronous I/O, Docker containerization, CI/CD automation, and ORM usage with a practical Flask example.

BackendCI/CDORM
0 likes · 11 min read
9 Best Practices for Enterprise Python Development
Test Development Learning Exchange
Test Development Learning Exchange
Nov 7, 2024 · Fundamentals

40 Essential Python pandas Scripts for Excel Data Processing

This article compiles 40 practical Python pandas scripts covering Excel file reading, sheet selection, date parsing, column manipulation, data filtering, sorting, grouping, merging, pivot tables, visualization, cleaning, and advanced operations, providing clear examples and output for each step to help data analysts efficiently handle tabular data.

ExcelPythonpandas
0 likes · 17 min read
40 Essential Python pandas Scripts for Excel Data Processing
Test Development Learning Exchange
Test Development Learning Exchange
Nov 6, 2024 · Fundamentals

Overview of Common Python Standard Library Modules

This article provides a concise overview of twenty essential Python standard library modules, covering their primary purposes and frequently used functions such as file handling, system interaction, data processing, networking, concurrency, compression, and serialization, helping developers improve productivity across various programming tasks.

ModulesPythonTutorial
0 likes · 8 min read
Overview of Common Python Standard Library Modules
21CTO
21CTO
Nov 5, 2024 · Artificial Intelligence

Why Python Overtook JavaScript on GitHub: AI Projects Fuel Explosive Growth

The 2024 GitHub Octoverse report reveals that Python has surpassed JavaScript as the most used language, driven by a surge in generative AI projects and a 92% rise in Jupyter Notebook usage, highlighting the expanding role of AI and data‑science communities on the platform.

AIData ScienceGitHub
0 likes · 5 min read
Why Python Overtook JavaScript on GitHub: AI Projects Fuel Explosive Growth
ITPUB
ITPUB
Nov 5, 2024 · Operations

Master EFLK: Deep‑Inspection Guide for Elasticsearch, Filebeat, Logstash & Kibana

This guide presents a comprehensive, step‑by‑step deep‑inspection plan for the EFLK stack, covering Elasticsearch health checks, node performance metrics, shard and index monitoring, Logstash and Kibana validation, DSL query examples, and automated Python‑based metric collection with cron scheduling.

ElasticsearchKibanaLogstash
0 likes · 13 min read
Master EFLK: Deep‑Inspection Guide for Elasticsearch, Filebeat, Logstash & Kibana
Python Programming Learning Circle
Python Programming Learning Circle
Nov 5, 2024 · Fundamentals

Why Python Does Not Need a Traditional Main Function

The article explains that unlike compiled languages, Python as an interpreted scripting language does not require a mandatory main function, clarifies the purpose of the __name__ == '__main__' guard, and advises using a simple entry script such as main.py for clean, idiomatic code.

PythonScriptbest-practices
0 likes · 6 min read
Why Python Does Not Need a Traditional Main Function
Test Development Learning Exchange
Test Development Learning Exchange
Nov 4, 2024 · Artificial Intelligence

Image Processing with Python: Pillow and OpenCV Guide

This guide demonstrates how to perform common image processing tasks in Python using the Pillow and OpenCV libraries, covering reading, displaying, saving, resizing, cropping, rotating, converting to grayscale, adding text, compositing, blurring, sharpening, enhancing, and extracting image metadata.

OpenCVPythoncomputer vision
0 likes · 5 min read
Image Processing with Python: Pillow and OpenCV Guide
Test Development Learning Exchange
Test Development Learning Exchange
Nov 4, 2024 · Fundamentals

Python Practical Guide: File I/O, CSV, JSON, HTTP Requests, SQLite, Scheduling, Logging, Argument Parsing, Compression, Subprocess, DateTime, Email, Image Processing, NumPy, Pandas, Regex, System Info, Socket Programming, and AsyncIO

This comprehensive Python tutorial demonstrates essential techniques such as file reading and writing, CSV and JSON handling, HTTP requests, SQLite operations, task scheduling, logging, command‑line parsing, compression, subprocess management, date‑time handling, email sending, image manipulation, numerical computing, data analysis, regular expressions, system information retrieval, socket networking, and asynchronous programming.

Data ProcessingNetworkingPython
0 likes · 9 min read
Python Practical Guide: File I/O, CSV, JSON, HTTP Requests, SQLite, Scheduling, Logging, Argument Parsing, Compression, Subprocess, DateTime, Email, Image Processing, NumPy, Pandas, Regex, System Info, Socket Programming, and AsyncIO
Test Development Learning Exchange
Test Development Learning Exchange
Nov 3, 2024 · Fundamentals

Understanding Python Method Resolution Order (MRO)

This article explains Python's Method Resolution Order (MRO), detailing its basic principles, the C3 linearization algorithm, and how attribute and method lookup work in single, multiple, and complex inheritance scenarios, accompanied by illustrative code examples.

C3 LinearizationMROMethod Resolution Order
0 likes · 8 min read
Understanding Python Method Resolution Order (MRO)
Python Programming Learning Circle
Python Programming Learning Circle
Nov 2, 2024 · Fundamentals

Common Python Errors and How to Fix Them

This article presents 17 frequent Python runtime and syntax errors, explains why they occur, and provides clear code examples and corrections to help beginners quickly identify and resolve these issues while improving their debugging skills.

PythonSyntaxdebugging
0 likes · 10 min read
Common Python Errors and How to Fix Them
Test Development Learning Exchange
Test Development Learning Exchange
Nov 2, 2024 · Big Data

Python Data Parsing and Large‑Scale Data Processing Techniques

This article introduces Python's built‑in modules and popular libraries for parsing CSV, JSON, and XML files, demonstrates advanced data manipulation with pandas, and presents multiple strategies—including chunked reading, Dask, PySpark, HDF5, databases, Vaex, and NumPy memory‑mapping—for efficiently handling very large datasets.

CSVData ParsingJSON
0 likes · 14 min read
Python Data Parsing and Large‑Scale Data Processing Techniques
Architecture and Beyond
Architecture and Beyond
Nov 2, 2024 · Artificial Intelligence

Step-by-Step Guide to Training a LoRA Model with Flux1_dev on ComfyUI

This tutorial walks programmers through preparing a GPU cloud environment, installing ComfyUI, downloading Flux1_dev models, integrating a custom LoRA, labeling generated images, and finally training the LoRA using ai‑toolkit, providing detailed commands, configuration tips, and practical cost estimates.

AI image generationComfyUIFlux
0 likes · 12 min read
Step-by-Step Guide to Training a LoRA Model with Flux1_dev on ComfyUI
Test Development Learning Exchange
Test Development Learning Exchange
Nov 1, 2024 · Fundamentals

Comprehensive Python Basics: Variables, Data Types, Control Structures, Functions, OOP, Standard Library, and More

This article provides a comprehensive Python tutorial covering variables, data types, control structures, functions, classes, standard library modules, file I/O, exception handling, comprehensions, generators, decorators, modules, virtual environments, coding style, and Git version control, complete with example code snippets.

Control structuresFunctionsObject-Oriented Programming
0 likes · 14 min read
Comprehensive Python Basics: Variables, Data Types, Control Structures, Functions, OOP, Standard Library, and More
Python Programming Learning Circle
Python Programming Learning Circle
Nov 1, 2024 · Backend Development

Designing a Python SDK for Cloud TTS Services: Critique and Refactoring of Volcengine's SDK

This article examines the shortcomings of Volcengine's Python TTS SDK, proposes a cleaner design using request interceptors or Auth objects, demonstrates refactored code examples with the Tetos library, and explains how to integrate signing logic into standard HTTP clients for more maintainable backend development.

BackendHTTPPython
0 likes · 10 min read
Designing a Python SDK for Cloud TTS Services: Critique and Refactoring of Volcengine's SDK
Python Crawling & Data Mining
Python Crawling & Data Mining
Nov 1, 2024 · Backend Development

Fixing Chinese Character Garbling in Python Web Scraping

This article walks through a real‑world Python web‑scraping issue where Chinese characters appear as garbled text, explains why the default encoding fails, and shows how setting the response’s apparent encoding resolves the problem, complete with sample code and practical tips for posting questions.

PythonWeb Scrapingencoding
0 likes · 5 min read
Fixing Chinese Character Garbling in Python Web Scraping
Sohu Tech Products
Sohu Tech Products
Oct 30, 2024 · Operations

Comprehensive EFLK (Elasticsearch, Filebeat, Logstash, Kibana) Deep Inspection and Monitoring Guide

This comprehensive guide details a step‑by‑step deep‑inspection and monitoring strategy for an Elasticsearch‑Filebeat‑Logstash‑Kibana (EFLK) stack, covering cluster health, node and shard metrics, index status, query profiling, Filebeat, Logstash and Kibana validation, DSL query examples, and a Python script for automated metric collection.

EFLKElasticsearchFilebeat
0 likes · 12 min read
Comprehensive EFLK (Elasticsearch, Filebeat, Logstash, Kibana) Deep Inspection and Monitoring Guide
Test Development Learning Exchange
Test Development Learning Exchange
Oct 30, 2024 · Fundamentals

Understanding Python Magic (Dunder) Methods: Definitions, Examples, and Best Practices

This article explains Python magic (dunder) methods, their purposes, common examples such as __init__, __str__, __repr__, __len__, __getitem__, __setitem__, __delitem__, __iter__, __call__, __add__, __eq__, __hash__, and shows how to implement operator overloading, iterator and context‑manager protocols while discussing naming rules, performance, inheritance, type checking, and limitations.

Iterator ProtocolPythonSpecial Methods
0 likes · 19 min read
Understanding Python Magic (Dunder) Methods: Definitions, Examples, and Best Practices
Test Development Learning Exchange
Test Development Learning Exchange
Oct 29, 2024 · Fundamentals

Python Built‑in Data Types: Numbers, Strings, Booleans, Sequences, Mappings, Sets, Conversions and Others

This tutorial introduces Python's built‑in data types—including numbers, strings, booleans, lists, tuples, dictionaries, sets, and conversion functions—explaining their characteristics, common operations, and providing ready‑to‑run code examples for each type.

Data TypesProgramming FundamentalsPython
0 likes · 10 min read
Python Built‑in Data Types: Numbers, Strings, Booleans, Sequences, Mappings, Sets, Conversions and Others
YiSu Grain
YiSu Grain
Oct 29, 2024 · Fundamentals

Why This Design Works and How a Fenwick Tree Simplifies Inversion Counting

The article explains what inversion pairs are, demonstrates a naïve O(n²) counting method, then introduces a smarter right‑to‑left approach using a Fenwick (Binary Indexed) tree with discretization to achieve efficient O(n log n) inversion counting, providing full Python implementations and step‑by‑step examples.

Binary Indexed TreeFenwick treePython
0 likes · 7 min read
Why This Design Works and How a Fenwick Tree Simplifies Inversion Counting
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Oct 28, 2024 · Fundamentals

How Python Implements Static Lookup for Local Variables and Its Relationship to the Local Namespace

The article explains that CPython stores function local variables in a statically‑indexed array (f_localsplus), accesses them via GETLOCAL/SETLOCAL macros, and builds the locals() dictionary on demand, showing how exec, variable assignment order, and the hidden local namespace interact with this mechanism.

CPythonPythonbytecode
0 likes · 27 min read
How Python Implements Static Lookup for Local Variables and Its Relationship to the Local Namespace
Python Programming Learning Circle
Python Programming Learning Circle
Oct 26, 2024 · Big Data

Python Data Visualization with Matplotlib: Steps, Functions, and Practical Examples

This article provides a comprehensive guide to creating visualizations in Python using Matplotlib and related libraries, covering the three‑step workflow of problem definition, data transformation, and parameter tuning, along with detailed code examples for figures, subplots, legends, annotations, saving files, and Pandas‑based plotting.

Pythondata-visualizationpandas
0 likes · 10 min read
Python Data Visualization with Matplotlib: Steps, Functions, and Practical Examples