Tagged articles

Python

5000 articles · Page 26 of 50
Python Programming Learning Circle
Python Programming Learning Circle
Dec 21, 2023 · Artificial Intelligence

Introducing Streamlit: A Free Open‑Source Framework for Building Machine‑Learning Apps with Python

Streamlit is a free, open‑source Python framework that lets machine‑learning engineers quickly turn scripts into interactive web apps, featuring top‑to‑bottom script execution, widget‑as‑variable handling, caching, GPU support, and seamless integration with tools like Git.

App DevelopmentGPUMachine Learning
0 likes · 9 min read
Introducing Streamlit: A Free Open‑Source Framework for Building Machine‑Learning Apps with Python
Python Programming Learning Circle
Python Programming Learning Circle
Dec 21, 2023 · Fundamentals

Advanced Python Concepts: Exception Handling, Collections, itertools, Lambdas, Decorators, Generators, and More

This article presents a comprehensive guide to advanced Python topics—including exception handling, the collections and itertools modules, lambda functions, decorators, generators, process/thread basics, dunder methods, logging, and context managers—providing code examples and explanations to help developers deepen their expertise.

Pythonexception handling
0 likes · 12 min read
Advanced Python Concepts: Exception Handling, Collections, itertools, Lambdas, Decorators, Generators, and More
Test Development Learning Exchange
Test Development Learning Exchange
Dec 20, 2023 · Backend Development

Advanced @betamax.use_cassette Techniques for Automated Testing

This article explains why recording and replaying HTTP interactions with Betamax is essential for automated testing, outlines its benefits such as consistency, efficiency, error reduction, regression support, and provides multiple advanced code examples for custom recording modes, request filtering, cassette control, context‑manager usage, and handling dynamic content.

BetamaxCassetteHTTP Recording
0 likes · 10 min read
Advanced @betamax.use_cassette Techniques for Automated Testing
Python Crawling & Data Mining
Python Crawling & Data Mining
Dec 19, 2023 · Fundamentals

How to Fix Matplotlib Title Encoding Errors in Python

This article walks through a common Matplotlib title garbling issue caused by encoding settings, explains why the 'encoding' argument triggers an AttributeError, and provides a concise code fix using font configuration to display Chinese characters correctly.

MatplotlibPythonTroubleshooting
0 likes · 3 min read
How to Fix Matplotlib Title Encoding Errors in Python
Python Programming Learning Circle
Python Programming Learning Circle
Dec 16, 2023 · Artificial Intelligence

Using highway‑env with OpenAI Gym for Reinforcement Learning: Installation, Configuration, and DQN Training

This tutorial explains how to install the gym and highway‑env packages, configure the highway‑v0 environment, explore its observation types, and implement a DQN agent in Python to train and evaluate autonomous driving policies, complete with code snippets and performance visualizations.

DQNPythonReinforcement Learning
0 likes · 9 min read
Using highway‑env with OpenAI Gym for Reinforcement Learning: Installation, Configuration, and DQN Training
Test Development Learning Exchange
Test Development Learning Exchange
Dec 15, 2023 · Fundamentals

Python Visualization Libraries: Matplotlib, Seaborn, Plotly, Bokeh, Altair, Plotnine, VisPy, Pygame, Kivy, PyQt/PySide – Code Samples and Usage

This article introduces ten popular Python visualization and GUI libraries—Matplotlib, Seaborn, Plotly, Bokeh, Altair, Plotnine, VisPy, Pygame, Kivy, and PyQt/PySide—providing concise code examples and brief explanations of their typical use cases and strengths.

BokehData VisualizationMatplotlib
0 likes · 8 min read
Python Visualization Libraries: Matplotlib, Seaborn, Plotly, Bokeh, Altair, Plotnine, VisPy, Pygame, Kivy, PyQt/PySide – Code Samples and Usage
Python Programming Learning Circle
Python Programming Learning Circle
Dec 15, 2023 · Backend Development

phpy v2 – A High‑Performance PHP‑Python Bridge: Architecture, Usage, and Benchmarks

The article introduces the second version of phpy, a PHP extension that embeds a Python interpreter, explains its dual‑VM runtime architecture, shows how to use it under PHP‑FPM, presents detailed performance benchmarks, covers exception handling, IDE auto‑completion, compilation options, dynamic‑library troubleshooting, and provides numerous code examples for testing and scientific computing.

ExtensionPerformancePython
0 likes · 12 min read
phpy v2 – A High‑Performance PHP‑Python Bridge: Architecture, Usage, and Benchmarks
ITPUB
ITPUB
Dec 14, 2023 · Big Data

How to Build a Python‑Hadoop Word Count on a Single‑Node Cluster

This step‑by‑step guide shows how to install and configure a single‑node Hadoop 3.2.0 environment on CentOS 7, set up Python 3.7, write MapReduce mapper and reducer scripts in Python, and run a word‑count job using Hadoop streaming, illustrating core Hadoop concepts and their relevance today.

HadoopMapReducePython
0 likes · 21 min read
How to Build a Python‑Hadoop Word Count on a Single‑Node Cluster
Test Development Learning Exchange
Test Development Learning Exchange
Dec 12, 2023 · Fundamentals

Python Memory Management and Optimization Techniques

Python automatically manages memory through garbage collection, and this article explains how the garbage collector works and presents ten practical techniques—including manual gc calls, generators, sys.getsizeof, slice copying, del statements, sys.intern, NumPy, pandas, reference counting, and __slots__—to reduce memory usage and improve performance.

Garbage CollectionPerformancePython
0 likes · 5 min read
Python Memory Management and Optimization Techniques
Python Programming Learning Circle
Python Programming Learning Circle
Dec 12, 2023 · Fundamentals

10 Python Data Visualization Libraries for Multiple Disciplines

This article introduces ten Python visualization libraries—ranging from the classic Matplotlib to newer tools like Plotly and Leather—detailing their features, typical use cases, developer backgrounds, and how they complement each other for creating static, interactive, and geographic visualizations across various fields.

BokehMatplotlibPython
0 likes · 7 min read
10 Python Data Visualization Libraries for Multiple Disciplines
Test Development Learning Exchange
Test Development Learning Exchange
Dec 12, 2023 · Fundamentals

Advanced Python Debugging and Performance Optimization Techniques

This article presents several advanced Python debugging and performance optimization techniques—including using assert statements, interactive pdb debugging, cProfile profiling, generator expressions, dictionary/set lookups, appropriate data structures, and functools.lru_cache caching—to help developers write more efficient and reliable code.

Performance OptimizationProfilingPython
0 likes · 5 min read
Advanced Python Debugging and Performance Optimization Techniques
Test Development Learning Exchange
Test Development Learning Exchange
Dec 11, 2023 · Fundamentals

10 Practical Scenarios Demonstrating Lazy Evaluation and Infinite Sequence Handling in Python

This article presents ten practical Python examples illustrating lazy evaluation using generators and iterators, covering infinite sequences, large data processing, file streaming, and on-demand computation, highlighting memory efficiency and performance benefits for handling big data and infinite streams.

Infinite SequencesLazy EvaluationMemory Efficiency
0 likes · 7 min read
10 Practical Scenarios Demonstrating Lazy Evaluation and Infinite Sequence Handling in Python
Test Development Learning Exchange
Test Development Learning Exchange
Dec 10, 2023 · Backend Development

Online Traffic Replay in Python Automated Testing: Log Parsing, MySQL Storage, and Local Request Data Management

This article explains how to implement online traffic replay for Python automated testing by parsing logs, storing request data in a local MySQL database, analyzing user information with data‑analysis libraries, and locally persisting URL, method, headers, and body details using JSON files, complete with sample code.

MySQLPythonautomated testing
0 likes · 5 min read
Online Traffic Replay in Python Automated Testing: Log Parsing, MySQL Storage, and Local Request Data Management
Python Programming Learning Circle
Python Programming Learning Circle
Dec 7, 2023 · Fundamentals

Practical Python Implementation of Credit Card User Profiling Using SQL and Data Visualization

This tutorial demonstrates a complete workflow for building credit‑card user profiles by first extracting and transforming the KDD99 dataset with SQL, then applying Python libraries such as pandas, matplotlib, and seaborn to perform descriptive statistics and produce visualizations of demographic, transaction, and financial characteristics.

PythonSQLSeaborn
0 likes · 12 min read
Practical Python Implementation of Credit Card User Profiling Using SQL and Data Visualization
Tencent Cloud Developer
Tencent Cloud Developer
Dec 7, 2023 · Artificial Intelligence

Student Score Ranking and Distribution Analysis Using Python and Tencent Hunyuan Model

Using Tencent's Hunyuan model, the tutorial walks through a Python workflow that scrapes a student‑score table from a web page, saves it as CSV and Excel, cleans missing values, computes total and average scores, and visualizes their distributions with matplotlib, illustrating how LLMs can accelerate data‑analysis coding while still needing human verification.

Data VisualizationMatplotlibPandas
0 likes · 8 min read
Student Score Ranking and Distribution Analysis Using Python and Tencent Hunyuan Model
Test Development Learning Exchange
Test Development Learning Exchange
Dec 6, 2023 · Backend Development

Using Python multiprocessing and Celery for Parallel and Distributed Task Processing

This article introduces Python's multiprocessing module and the Celery task queue, explains their core concepts, and provides practical code examples for multi‑process parallel computation, inter‑process communication, asynchronous execution, scheduled jobs, result callbacks, retries, and distributed task orchestration.

Distributed TasksMultiprocessingPython
0 likes · 7 min read
Using Python multiprocessing and Celery for Parallel and Distributed Task Processing
Open Source Tech Hub
Open Source Tech Hub
Dec 6, 2023 · Backend Development

How to Install and Use PHPY: Bridge PHP with Python Libraries on Ubuntu

This guide walks you through installing PHPY on Ubuntu, covering the required environment setup, building PHP 8.3 from source, installing Anaconda and a Python 3.10 environment, compiling the PHPY extension, configuring php.ini, verifying the installation, and running a sample script that accesses Python's os module from PHP.

InstallationPHPPython
0 likes · 13 min read
How to Install and Use PHPY: Bridge PHP with Python Libraries on Ubuntu
21CTO
21CTO
Dec 5, 2023 · Backend Development

Django 5.0 Highlights: New Features, Simplified Forms, and Python Compatibility

Released on December 4, Django 5.0 brings full support for Python 3.10‑3.12, introduces field groups for streamlined form rendering, adds facet filters in the admin, offers new database defaults and generated fields, enhances choice declarations, and includes numerous minor improvements while noting backward‑incompatible changes.

Database FieldsDjangoForm Rendering
0 likes · 8 min read
Django 5.0 Highlights: New Features, Simplified Forms, and Python Compatibility
php Courses
php Courses
Dec 5, 2023 · Backend Development

phpy – A PHP Extension for Seamless Python Integration

phpy is an open‑source Swoole project that lets PHP import and use Python packages—including popular AI and scientific libraries—by providing a PHP extension or a Python C module, with detailed installation steps, usage examples, and support for callbacks and named parameters.

ExtensionInteropPython
0 likes · 10 min read
phpy – A PHP Extension for Seamless Python Integration
21CTO
21CTO
Dec 4, 2023 · Backend Development

Unlock Python in PHP: Install and Use the phpy Extension

This article introduces phpy, a PHP‑Python bridge library from Swoole, explains its purpose of filling gaps in the PHP ecosystem, provides step‑by‑step compilation and installation instructions, and demonstrates how to call Python packages, handle callbacks, and build GUI or AI applications from PHP code.

ExtensionInteropPHP
0 likes · 12 min read
Unlock Python in PHP: Install and Use the phpy Extension
Architecture Digest
Architecture Digest
Dec 1, 2023 · Databases

Understanding ULID: A Lexicographically Sortable Unique Identifier and Its Python Implementation

ULID (Universally Unique Lexicographically Sortable Identifier) offers a 128‑bit, time‑based and random identifier that is URL‑safe, sortable, and more collision‑resistant than UUID, with detailed specifications, binary layout, and Python usage examples including generation, conversion, and component extraction.

PythonULIDUUID alternative
0 likes · 7 min read
Understanding ULID: A Lexicographically Sortable Unique Identifier and Its Python Implementation
Python Programming Learning Circle
Python Programming Learning Circle
Nov 30, 2023 · Fundamentals

Introduction and Usage Guide for PyMuPDF (Python Bindings for MuPDF)

This article provides a comprehensive overview of PyMuPDF, covering its relationship to MuPDF, core features, installation methods, import conventions, and detailed usage examples for opening documents, handling pages, extracting text and images, and performing PDF-specific operations such as merging, splitting, and saving.

Document processingLibraryMuPDF
0 likes · 12 min read
Introduction and Usage Guide for PyMuPDF (Python Bindings for MuPDF)
Python Programming Learning Circle
Python Programming Learning Circle
Nov 30, 2023 · Artificial Intelligence

Common Python Libraries for Computer Vision Projects

This article introduces ten popular Python libraries for computer vision, describing their main features, typical applications, and providing concise code examples to help beginners and practitioners quickly choose and use the right tools for image processing and deep learning tasks.

Computer VisionImage processingMachine Learning
0 likes · 10 min read
Common Python Libraries for Computer Vision Projects
Python Programming Learning Circle
Python Programming Learning Circle
Nov 29, 2023 · Fundamentals

Building a Simple Python Interpreter with PLY

This article guides readers through designing and implementing a basic Python interpreter that can evaluate arithmetic expressions by defining tokens, writing a lexer and parser with PLY, specifying BNF grammar, handling precedence, and assembling a runnable program that processes user input.

BNFPLYParser
0 likes · 9 min read
Building a Simple Python Interpreter with PLY
Test Development Learning Exchange
Test Development Learning Exchange
Nov 28, 2023 · Backend Development

Python Asyncio: Coroutines and Asynchronous Programming with Practical Code Examples

This article introduces Python coroutines and asynchronous programming using the asyncio module, explains key concepts such as event loops and non‑blocking I/O, and provides ten detailed code examples that demonstrate creating, managing, and synchronizing async tasks for improved performance.

CoroutinesPythonasynchronous programming
0 likes · 7 min read
Python Asyncio: Coroutines and Asynchronous Programming with Practical Code Examples
Python Programming Learning Circle
Python Programming Learning Circle
Nov 28, 2023 · Fundamentals

15 Concise Python Tips for More Efficient Coding

This article presents fifteen practical Python techniques—including multi‑key sorting, data classes, list comprehensions, memory inspection, frequency analysis, dictionary merging, multiple return values, filter/map/zip usage, list reversal, element existence checks, flattening nested lists, and uniqueness verification—to help developers write cleaner, faster, and more readable code.

Data ClassesPythonfilter
0 likes · 9 min read
15 Concise Python Tips for More Efficient Coding
Liangxu Linux
Liangxu Linux
Nov 27, 2023 · Information Security

How TOTP Secures Your Accounts: Theory, Applications, and Python Demo

This article explains the TOTP algorithm behind time‑based one‑time passwords, outlines its security benefits and common use cases such as online logins, VPNs, and hardware tokens, and provides a practical Python implementation with code examples using the pyotp library.

OTPPythonSecurity
0 likes · 6 min read
How TOTP Secures Your Accounts: Theory, Applications, and Python Demo
Python Programming Learning Circle
Python Programming Learning Circle
Nov 27, 2023 · Fundamentals

Six Practical Python Tricks: String Operations, List Comprehensions, Lambdas, Map, Conditional Expressions, and Zip

This article introduces six useful Python techniques—including string manipulation, list comprehensions, lambda functions, the map and zip utilities, and one‑line conditional expressions—showing concise code examples and explaining how each feature can simplify everyday programming tasks.

LambdaPythonlist-comprehension
0 likes · 8 min read
Six Practical Python Tricks: String Operations, List Comprehensions, Lambdas, Map, Conditional Expressions, and Zip
Test Development Learning Exchange
Test Development Learning Exchange
Nov 27, 2023 · Fundamentals

10 Practical Python Metaprogramming Scenarios Using __getattr__, __setattr__, Property Decorators, Descriptors, and Metaclasses

This article demonstrates ten practical Python metaprogramming techniques—including dynamic attribute access with __getattr__, attribute assignment with __setattr__, descriptor-based validation, property decorators, dynamic class and method creation, and metaclass usage—providing complete code examples for each scenario.

DynamicAttributesMetaprogrammingPropertyDecorator
0 likes · 6 min read
10 Practical Python Metaprogramming Scenarios Using __getattr__, __setattr__, Property Decorators, Descriptors, and Metaclasses
HomeTech
HomeTech
Nov 24, 2023 · Backend Development

Implementing Task Scheduling and Distributed Processing with Celery and Redis in Python

This article explains how to use Celery together with Redis to manage and execute periodic and asynchronous tasks in Python, covering basic concepts, architecture, configuration steps, single‑worker and multi‑worker setups, distributed processing strategies, and practical considerations for reliable task execution.

Distributed ComputingPythonTask Scheduling
0 likes · 8 min read
Implementing Task Scheduling and Distributed Processing with Celery and Redis in Python
Advanced AI Application Practice
Advanced AI Application Practice
Nov 24, 2023 · Artificial Intelligence

Boost Report Testing Efficiency with an AI Large Model

The article demonstrates how Tencent's Hunyuan large model can generate Python scripts to automatically compare Excel‑based reports, highlight differences, and handle multiple files, turning a tedious manual regression test into a fast, reliable automated process.

AIPythonautomation
0 likes · 4 min read
Boost Report Testing Efficiency with an AI Large Model
Test Development Learning Exchange
Test Development Learning Exchange
Nov 23, 2023 · Backend Development

Python Multithreading Techniques for Concurrent API Calls, File Downloads, Test Execution, and Database Inserts

This article explains Python's multithreading model, covering thread creation, synchronization, data sharing, and provides practical code examples for sending concurrent API requests, downloading files, running test cases, reading files, and inserting records into a SQLite database.

APIConcurrencyDatabase
0 likes · 6 min read
Python Multithreading Techniques for Concurrent API Calls, File Downloads, Test Execution, and Database Inserts
Tencent Cloud Developer
Tencent Cloud Developer
Nov 23, 2023 · Artificial Intelligence

Calling Your Private GPTs from ChatGPT with 50 Lines of Python Code

This tutorial shows how, with about 50 lines of Python using Playwright and pyperclip, you can automate a persistent Firefox session to log into ChatGPT Plus, navigate to your private GPT URL, send prompts and retrieve responses via the clipboard, all without incurring extra API fees.

GPTsPlaywrightPython
0 likes · 14 min read
Calling Your Private GPTs from ChatGPT with 50 Lines of Python Code
php Courses
php Courses
Nov 21, 2023 · Mobile Development

Leveraging PHP and Python for Mobile Application Development

This article explores how PHP and Python can be combined to build scalable, efficient, and user‑friendly mobile applications, highlighting PHP’s strengths in backend services, Python’s cross‑platform capabilities, and strategies for integrating both languages to maximize performance, scalability, and development speed.

Backend DevelopmentCross‑platformMobile Development
0 likes · 7 min read
Leveraging PHP and Python for Mobile Application Development
DataFunSummit
DataFunSummit
Nov 20, 2023 · Artificial Intelligence

ModelScope Agents: Open‑Source LLM Agent Framework and Practical Guide

This article introduces ModelScope Agents, an open‑source LLM‑based agent framework that addresses limitations of GPT Store, outlines its features, provides installation and usage instructions, showcases a RPG game example, and invites the community to contribute to its roadmap.

AIAgent FrameworkLLM
0 likes · 7 min read
ModelScope Agents: Open‑Source LLM Agent Framework and Practical Guide
Test Development Learning Exchange
Test Development Learning Exchange
Nov 20, 2023 · Fundamentals

Higher-Order Functions and Function Composition in Python with 10 Practical Examples

This article explains the core concepts of higher-order functions and function composition in functional programming, defines them, and provides ten practical Python code examples illustrating usage as parameters, return values, composition, and common utilities such as map, filter, reduce, list comprehensions, and functools.partial.

Higher-Order FunctionsPythonfilter
0 likes · 4 min read
Higher-Order Functions and Function Composition in Python with 10 Practical Examples
Practical DevOps Architecture
Practical DevOps Architecture
Nov 20, 2023 · Backend Development

Comprehensive Python Full-Stack Development Course Outline (28 Chapters)

This article presents a detailed 28‑chapter curriculum for mastering Python full‑stack development, covering Linux basics, Python fundamentals, web front‑end design with Vue, RESTful API creation with Flask, Django and Django REST Framework, big‑data processing with Hadoop, Spark and MapReduce, feature engineering, recommendation systems, and live streaming system implementation.

Big DataFull‑stack developmentPython
0 likes · 3 min read
Comprehensive Python Full-Stack Development Course Outline (28 Chapters)
JD Tech
JD Tech
Nov 17, 2023 · Backend Development

Integrating ChatGPT with HttpRunner for Agile API Automation Testing

This article explains how software test engineers can combine ChatGPT and the HttpRunner framework to address DevOps testing pain points, record web operations, batch‑modify scripts, run and debug tests, and automatically generate API test cases and scripts for faster, more efficient regression testing.

API testingDevOpsHttpRunner
0 likes · 10 min read
Integrating ChatGPT with HttpRunner for Agile API Automation Testing
Test Development Learning Exchange
Test Development Learning Exchange
Nov 17, 2023 · Backend Development

Building a Short URL Service with Flask and Django

This article explains the benefits of using short‑link services for marketing, sharing, and SMS optimization, and provides step‑by‑step Flask and Django tutorials—including installation commands, MySQL integration, URL generation, routing, and database models—to create a functional short URL platform.

Backend DevelopmentDjangoFlask
0 likes · 7 min read
Building a Short URL Service with Flask and Django
php Courses
php Courses
Nov 16, 2023 · Information Security

Security Risks of OpenAI's ChatGPT Code Interpreter Tool

OpenAI's new ChatGPT Code Interpreter, which can generate and run Python code in a sandbox, has been shown to allow malicious actors to exploit spreadsheet handling and command execution features, raising serious information‑security concerns among experts.

AICode interpreterPython
0 likes · 2 min read
Security Risks of OpenAI's ChatGPT Code Interpreter Tool
Test Development Learning Exchange
Test Development Learning Exchange
Nov 16, 2023 · Artificial Intelligence

Building a Python Image Editing Tool with Pillow, OpenCV, and NumPy

This guide demonstrates how to create a custom image editing tool in Python by leveraging the Pillow, OpenCV, and NumPy libraries, providing step‑by‑step code examples for opening, resizing, filtering, converting to grayscale, edge detection, rotation, channel manipulation, blurring, contour extraction, and color adjustment.

Computer VisionImage processingNumPy
0 likes · 6 min read
Building a Python Image Editing Tool with Pillow, OpenCV, and NumPy
Baidu Geek Talk
Baidu Geek Talk
Nov 15, 2023 · Mobile Development

Automated OC Code Refactoring Practice (Part 3): Data Item Read/Write Class Encapsulation and Call Site Adaptation

The third part of the series shows how Python scripts can automatically refactor Objective‑C code by encapsulating each data item’s read/write operations in static wrapper classes and rewriting over 600 call sites to use generated XXXSettingReader and XXXSettingWriter methods, achieving zero bugs.

Code RefactoringObjective‑CPython
0 likes · 11 min read
Automated OC Code Refactoring Practice (Part 3): Data Item Read/Write Class Encapsulation and Call Site Adaptation
MaGe Linux Operations
MaGe Linux Operations
Nov 14, 2023 · Fundamentals

Master Pytest: From Basics to Advanced Fixtures and Allure Reporting

This comprehensive guide walks you through Pytest fundamentals, basic usage, fixture mechanisms, conftest configuration, and advanced features such as Allure report beautification, parameterized data‑driven testing, and YAML integration, providing practical code examples for Python test automation.

AllurePythonUnit Testing
0 likes · 25 min read
Master Pytest: From Basics to Advanced Fixtures and Allure Reporting
Test Development Learning Exchange
Test Development Learning Exchange
Nov 13, 2023 · Fundamentals

Master Core Python, Database, Linux, and Networking Concepts in One Guide

This comprehensive guide covers essential programming fundamentals—including Python memory management, metaclasses, decorators, multithreading, data structures, algorithmic techniques, database concepts such as ACID, indexing, and transaction isolation, Redis operations, Linux memory handling, networking protocols, Docker/Kubernetes commands, and core testing methodologies—providing clear explanations and practical code examples.

DatabasesLinuxPython
0 likes · 38 min read
Master Core Python, Database, Linux, and Networking Concepts in One Guide
21CTO
21CTO
Nov 13, 2023 · Fundamentals

Why C# Is Closing the Gap with Java in the Latest TIOBE Rankings

November 2023’s TIOBE Index reveals Python still leads at 14.16%, while C# jumps to fifth place, narrowing its gap with Java to just 0.7%, as Java slips to fourth with its biggest monthly decline, and C and C++ also see modest drops.

C#JavaLanguage Popularity
0 likes · 2 min read
Why C# Is Closing the Gap with Java in the Latest TIOBE Rankings
Python Programming Learning Circle
Python Programming Learning Circle
Nov 13, 2023 · Fundamentals

Why You Should Avoid For Loops in Python and Use More Advanced Constructs

The article explains how avoiding explicit for‑loops in Python encourages the use of more expressive constructs such as list comprehensions, generator expressions, map/reduce, and itertools, leading to shorter, more readable, and better‑structured code while showcasing practical examples and best‑practice recommendations.

Functional ProgrammingPythoncode optimization
0 likes · 7 min read
Why You Should Avoid For Loops in Python and Use More Advanced Constructs
Test Development Learning Exchange
Test Development Learning Exchange
Nov 11, 2023 · Artificial Intelligence

Python Techniques for Comprehensive Text Data Analysis

This guide demonstrates how to use Python for end‑to‑end text data analysis, covering preprocessing, word‑frequency visualization, classification, sentiment detection, similarity measurement, entity recognition, keyword extraction, summarization, translation, and generation with clear code examples.

PythonSentiment Analysisnlp
0 likes · 6 min read
Python Techniques for Comprehensive Text Data Analysis
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 10, 2023 · Artificial Intelligence

Video Background Replacement Using RobustVideoMatting and Python

This tutorial explains how to use the open‑source RobustVideoMatting project to perform human portrait segmentation and replace video backgrounds, covering environment setup, model loading, custom image‑and‑video matting functions, and final video composition with OpenCV.

Background ReplacementPythonRobustVideoMatting
0 likes · 9 min read
Video Background Replacement Using RobustVideoMatting and Python
Test Development Learning Exchange
Test Development Learning Exchange
Nov 7, 2023 · Fundamentals

Master Python’s Core Data Types: Numbers, Strings, Lists, and More

This guide introduces Python’s fundamental data types—including integers, floats, complex numbers, strings, booleans, lists, tuples, dictionaries, sets, NoneType, enums, functions, modules, and classes—explaining their characteristics and providing concise code examples that demonstrate creation, manipulation, and common operations for each type.

Data TypesProgramming BasicsPython
0 likes · 7 min read
Master Python’s Core Data Types: Numbers, Strings, Lists, and More
Test Development Learning Exchange
Test Development Learning Exchange
Nov 7, 2023 · Fundamentals

Understanding Python Unpacking: Benefits and Practical Examples

Python unpacking lets you extract multiple values from iterables in a single, readable statement, reducing code complexity and enabling concise operations such as simultaneous variable assignment, swapping, dictionary merging, and function argument handling, illustrated with numerous practical code examples.

Code examplesFundamentalsProgramming
0 likes · 5 min read
Understanding Python Unpacking: Benefits and Practical Examples
21CTO
21CTO
Nov 4, 2023 · Fundamentals

Is Python a Compiled or Interpreted Language? Uncover the Truth

This article explores whether Python is a compiled or interpreted language by examining its compilation stages, error‑message generation, differences across Python versions, and the broader distinction between static and dynamic language features, ultimately showing that Python combines both compilation and interpretation.

CompilationError handlingInterpretation
0 likes · 17 min read
Is Python a Compiled or Interpreted Language? Uncover the Truth
Python Programming Learning Circle
Python Programming Learning Circle
Nov 4, 2023 · Fundamentals

Modern Python Standard Library: pathlib, secrets, zoneinfo, dataclasses, logging, f‑strings, tomllib, and setuptools

This article reviews recent Python standard‑library enhancements, showing how pathlib replaces os.path, secrets supersedes os.urandom, zoneinfo replaces pytz, dataclasses improve on namedtuple, proper logging outperforms print, f‑strings beat format, tomllib replaces tomli, and setuptools supersedes distutils, with code examples for each.

LoggingPythondataclasses
0 likes · 13 min read
Modern Python Standard Library: pathlib, secrets, zoneinfo, dataclasses, logging, f‑strings, tomllib, and setuptools
Sohu Tech Products
Sohu Tech Products
Nov 1, 2023 · Fundamentals

Boost Python Performance with Numba: Real-World Pandas Benchmarks

This article introduces Numba, explains its parallel, distributed, and GPU acceleration capabilities, and provides detailed Pandas benchmark examples that show how Numba’s JIT compilation dramatically speeds up data‑frame operations compared with default and Cython engines.

BenchmarkJITPandas
0 likes · 7 min read
Boost Python Performance with Numba: Real-World Pandas Benchmarks
Model Perspective
Model Perspective
Nov 1, 2023 · Artificial Intelligence

Master Differential Evolution: Principles, Code Example, and GA Comparison

This article introduces the Differential Evolution (DE) algorithm, detailing its core concepts of mutation, crossover, and selection, outlines the step-by-step procedure, provides a Python implementation, compares DE with Genetic Algorithms, and highlights practical applications across engineering, machine learning, and image processing.

Differential EvolutionEvolutionary AlgorithmsPython
0 likes · 11 min read
Master Differential Evolution: Principles, Code Example, and GA Comparison