Tagged articles

Python

5000 articles · Page 23 of 50
Model Perspective
Model Perspective
Jul 17, 2024 · Fundamentals

10 Proven Python Tricks to Boost Your Coding Efficiency

This article presents ten practical Python techniques—including list comprehensions, generators, standard library usage, third‑party packages, decorators, context managers, built‑in functions, OOP, testing, and refactoring—to help developers write cleaner, faster, and more maintainable code.

Pythoncode optimizationprogramming tips
0 likes · 12 min read
10 Proven Python Tricks to Boost Your Coding Efficiency
MaGe Linux Operations
MaGe Linux Operations
Jul 15, 2024 · Fundamentals

Why Python’s ‘is’ Returns False for Identical Numbers and Other Gotchas

This article explains why Python’s is operator can yield False for seemingly identical integers, how integer caching and code‑block reuse affect object identity, common pitfalls with re.sub’s count parameter, the character‑based behavior of lstrip, and why list multiplication creates shared references.

Integer cachingPythonis-operator
0 likes · 8 min read
Why Python’s ‘is’ Returns False for Identical Numbers and Other Gotchas
Python Programming Learning Circle
Python Programming Learning Circle
Jul 15, 2024 · Fundamentals

Understanding NumPy Array Memory Layout and Accelerating Image Resizing with Unsafe Python Techniques

This article explains how NumPy stride differences caused a 100× slowdown when resizing images from a pygame Surface, demonstrates how to reinterpret the underlying memory layout using ctypes to achieve a 100× speedup with OpenCV, and discusses the safety implications of such low‑level Python tricks.

NumPyOpenCVPerformance
0 likes · 19 min read
Understanding NumPy Array Memory Layout and Accelerating Image Resizing with Unsafe Python Techniques
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Jul 15, 2024 · Fundamentals

Open-Source PDF Table Extraction with Camelot: Quick‑Start Guide

This article explains why extracting tables from PDFs is a common bottleneck, introduces the open‑source Camelot library, walks through installing Ghostscript and Camelot, shows a minimal Python script to convert PDFs to CSV, handles a typical runtime error, and demonstrates the companion Excalibur web UI for interactive extraction.

CamelotData ProcessingExcalibur
0 likes · 5 min read
Open-Source PDF Table Extraction with Camelot: Quick‑Start Guide
Test Development Learning Exchange
Test Development Learning Exchange
Jul 14, 2024 · Fundamentals

Using pandas fillna() to Handle Missing Data: 10 Practical Examples

This article introduces pandas' fillna() method and demonstrates ten practical examples—including basic filling, column‑specific values, forward/backward filling, limiting fills, using other DataFrames, functions, conditional fills, dictionaries, and Series—to help developers effectively handle missing data in Python data analysis.

Pythondata cleaningfillna
0 likes · 6 min read
Using pandas fillna() to Handle Missing Data: 10 Practical Examples
Python Crawling & Data Mining
Python Crawling & Data Mining
Jul 14, 2024 · Fundamentals

Why Design Patterns Matter: Master Reusable Solutions in OOP

This article explains what design patterns are, why they are essential for creating reusable and maintainable object‑oriented code, outlines their main categories, learning steps, and provides a Python command‑pattern example along with a guide to a comprehensive Python design‑patterns book.

Behavioral PatternsCreational PatternsDesign Patterns
0 likes · 7 min read
Why Design Patterns Matter: Master Reusable Solutions in OOP
Baobao Algorithm Notes
Baobao Algorithm Notes
Jul 13, 2024 · Artificial Intelligence

Which LLM Generates Tokens Fastest? A Real‑World Speed Benchmark Across Major Models

This article presents a practical Python benchmark that measures token‑per‑second generation speed of various large language models—including GPT‑4o, glm‑4‑airx, and moonshot‑v1‑32k—by timing text generation on a Colab environment and summarizing the results in detailed tables and visual charts.

AILLMModel Comparison
0 likes · 15 min read
Which LLM Generates Tokens Fastest? A Real‑World Speed Benchmark Across Major Models
Python Programming Learning Circle
Python Programming Learning Circle
Jul 12, 2024 · Artificial Intelligence

Building a Simple Neural Network from Scratch in Python

This article walks through constructing a basic neural network using only Python and NumPy, explains the underlying concepts such as neurons, training cycles, sigmoid activation, and weight‑adjustment formulas, and provides complete, runnable code with sample inputs and outputs.

Artificial IntelligenceNeural NetworkNumPy
0 likes · 9 min read
Building a Simple Neural Network from Scratch in Python
Python Programming Learning Circle
Python Programming Learning Circle
Jul 11, 2024 · Fundamentals

Critical Review of Python in Excel: Limitations, Use Cases, and Recommendations

The article provides a detailed technical analysis of Microsoft’s preview‑only Python in Excel feature, outlining its current capabilities, major limitations such as lack of VBA replacement, restricted package usage, cloud‑dependency, and workflow friction, while suggesting improvements and alternative approaches for data‑centric users.

AutomationAzureData Analysis
0 likes · 16 min read
Critical Review of Python in Excel: Limitations, Use Cases, and Recommendations
MaGe Linux Operations
MaGe Linux Operations
Jul 11, 2024 · Fundamentals

Master Python list.sort vs sorted: Tips, Syntax, and Real-World Examples

This guide explains the differences between Python's list.sort method and the sorted function, covering their syntax, parameters, performance nuances, and practical examples such as ascending/descending order, custom key functions, and creating sorted copies without altering the original list.

Code ExamplesData StructuresPython
0 likes · 7 min read
Master Python list.sort vs sorted: Tips, Syntax, and Real-World Examples
Test Development Learning Exchange
Test Development Learning Exchange
Jul 11, 2024 · Fundamentals

10 Handy Python Regular Expression Scripts for Common Tasks

This article presents ten concise Python regular‑expression scripts that demonstrate how to validate email addresses, extract URLs, replace numbers, assess password strength, split strings, match dates, strip HTML tags, capitalize words, find phone numbers, and replace specific characters, empowering developers with practical pattern‑matching techniques.

Pythonprogrammingregex
0 likes · 5 min read
10 Handy Python Regular Expression Scripts for Common Tasks
Python Programming Learning Circle
Python Programming Learning Circle
Jul 10, 2024 · Fundamentals

Automating PowerPoint with Python: win32com, python-pptx, and seaborn

This tutorial demonstrates how to use Python libraries such as win32com and python-pptx to automate PowerPoint creation, manipulation, and styling—including copying templates, adding slides, text boxes, tables, charts, shapes, and images—while also covering seaborn installation and basic data‑visualization examples that can be embedded into PPT files.

PPT AutomationPythonSeaborn
0 likes · 24 min read
Automating PowerPoint with Python: win32com, python-pptx, and seaborn
Python Programming Learning Circle
Python Programming Learning Circle
Jul 10, 2024 · Big Data

Using the TransBigData Python Library for Mobile Signaling Data Processing, Analysis, and Visualization

This article introduces the open‑source Python package TransBigData, explains how to install it, and demonstrates step‑by‑step methods for reading mobile signaling data, preprocessing, identifying stays and moves, extracting home and work locations, and visualizing individual activity patterns using Jupyter notebooks.

Data AnalysisGeospatialPython
0 likes · 8 min read
Using the TransBigData Python Library for Mobile Signaling Data Processing, Analysis, and Visualization
php Courses
php Courses
Jul 10, 2024 · Backend Development

Nginx Fundamentals and Multi‑Language Simple Static Server Implementations

This course covers Nginx installation, process control, reload, configuration loading, static service, HTTP and gRPC reverse proxy, load balancing, and demonstrates building simple static servers in Go, Python, PHP, C, and C++ to deepen understanding of Nginx’s core principles.

NginxPythonStatic Server
0 likes · 2 min read
Nginx Fundamentals and Multi‑Language Simple Static Server Implementations
Model Perspective
Model Perspective
Jul 10, 2024 · Fundamentals

Boosting Graduate Employment Quality Assessment with Fuzzy Hierarchical Analysis

This article introduces the fuzzy comprehensive evaluation method, focusing on the fuzzy hierarchical analysis technique, explains its mathematical foundations and step-by-step procedure, and demonstrates its application through a case study evaluating employment quality of university graduates, complemented by Python code for weight calculation.

Employment QualityPythonfuzzy evaluation
0 likes · 8 min read
Boosting Graduate Employment Quality Assessment with Fuzzy Hierarchical Analysis
Open Source Tech Hub
Open Source Tech Hub
Jul 9, 2024 · Databases

How to Deploy and Use SQLite-Web: A Web‑Based SQLite Database Manager

This guide introduces SQLite‑Web, a Python‑based web interface for SQLite, explains how to build and run its Docker image, details the command‑line options for configuring ports, hosts, authentication, and other features, and shows how to manage, query, and export SQLite databases through the browser.

DockerPythonSQLite
0 likes · 6 min read
How to Deploy and Use SQLite-Web: A Web‑Based SQLite Database Manager
Python Programming Learning Circle
Python Programming Learning Circle
Jul 9, 2024 · Artificial Intelligence

Principal Component Analysis (PCA) with Python: Theory and Practical Example on the Breast Cancer Dataset

This article explains the fundamentals of Principal Component Analysis (PCA), demonstrates its application on the Breast Cancer Wisconsin dataset using Python code, and shows how scaling, PCA transformation, scree plots, and feature-group comparisons can reveal data structure and improve predictive modeling.

Breast Cancer DatasetData VisualizationPCA
0 likes · 11 min read
Principal Component Analysis (PCA) with Python: Theory and Practical Example on the Breast Cancer Dataset
IT Services Circle
IT Services Circle
Jul 9, 2024 · Artificial Intelligence

Comparative Study of Classification Algorithms and Calibration Using Synthetic Data

This article presents a comprehensive case study that explains classification principles, shows the key formulas for logistic regression and SVM, and provides a full Python implementation that generates synthetic data, trains multiple classifiers, calibrates them, and visualizes calibration curves and probability histograms.

ClassificationPythoncalibration
0 likes · 6 min read
Comparative Study of Classification Algorithms and Calibration Using Synthetic Data
Python Programming Learning Circle
Python Programming Learning Circle
Jul 8, 2024 · Fundamentals

Python Variable Usage, Naming Conventions, and Common Operations

This article teaches Python developers how to write cleaner, more elegant code by mastering variable unpacking, underscore placeholders, type annotations, PEP 8 naming rules, numeric literals, floating‑point precision handling with Decimal, boolean arithmetic tricks, and a wide range of string manipulation techniques, all illustrated with practical code examples.

Code styleDecimalPython
0 likes · 10 min read
Python Variable Usage, Naming Conventions, and Common Operations
21CTO
21CTO
Jul 7, 2024 · Artificial Intelligence

How to Build a Secure Local LLM Chatbot with Ollama, Python, and ChromaDB

This tutorial walks you through creating a privacy‑preserving, locally hosted large language model chatbot using Ollama, Python 3, and ChromaDB, covering RAG fundamentals, GPU selection, environment setup, and full source code for a Flask‑based application.

ChromaDBLLMOllama
0 likes · 19 min read
How to Build a Secure Local LLM Chatbot with Ollama, Python, and ChromaDB
Test Development Learning Exchange
Test Development Learning Exchange
Jul 6, 2024 · Operations

10 Practical Python Automation Scripts for File Management, Web Scraping, Data Cleaning, and More

This article presents ten useful Python automation scripts covering file renaming, web page downloading, data cleaning, scheduled tasks, email sending, testing, database backup, log analysis, file compression, and document generation, each with clear explanations and ready‑to‑run code examples.

AutomationCodeExamplesOperations
0 likes · 7 min read
10 Practical Python Automation Scripts for File Management, Web Scraping, Data Cleaning, and More
Python Programming Learning Circle
Python Programming Learning Circle
Jul 6, 2024 · Fundamentals

Python Code Optimization Techniques and Performance Tips

This article presents Python code optimization principles, including avoiding premature optimization, reducing global variable usage, minimizing attribute access, eliminating unnecessary abstractions, optimizing loops, leveraging numba JIT, and selecting appropriate data structures, accompanied by performance comparisons and code examples.

Python
0 likes · 13 min read
Python Code Optimization Techniques and Performance Tips
Python Programming Learning Circle
Python Programming Learning Circle
Jul 3, 2024 · Operations

17 Practical Python Scripts for Automating Everyday Tasks

This article presents 17 versatile Python scripts that automate common tasks such as file management, web scraping, email handling, Excel processing, database interaction, system administration, and more, offering code examples and explanations to help developers and analysts improve productivity.

AutomationPythonWeb Scraping
0 likes · 28 min read
17 Practical Python Scripts for Automating Everyday Tasks
21CTO
21CTO
Jul 2, 2024 · Backend Development

FastAPI vs Flask: Why FastAPI Outperforms Flask for Modern APIs

This article compares FastAPI and Flask, highlighting FastAPI's speed, developer experience, and standards support, while providing practical migration guidance, code examples, configuration tips, async handling, dependency injection, testing, deployment, and documentation differences for Python web developers.

ASGIDependency InjectionFastAPI
0 likes · 25 min read
FastAPI vs Flask: Why FastAPI Outperforms Flask for Modern APIs
21CTO
21CTO
Jul 1, 2024 · Fundamentals

Explore Positron: The Next‑Gen VS Code‑Based IDE for R and Python

Positron, the new beta IDE from Posit built on Visual Studio Code, offers a ready‑to‑use, cross‑platform environment for R and Python with integrated data exploration tools, seamless language switching, and easy extension management via OpenVSX, while still being an early‑stage project.

Data ScienceIDEOpenVSX
0 likes · 5 min read
Explore Positron: The Next‑Gen VS Code‑Based IDE for R and Python
Python Programming Learning Circle
Python Programming Learning Circle
Jul 1, 2024 · Fundamentals

Building a Python GUI to Visualize World Bank GDP Data with Tkinter, pandas_datareader, and Matplotlib

This tutorial demonstrates how to create a desktop GUI using Python's Tkinter library to fetch per‑capita GDP data from the World Bank via pandas_datareader, process it with pandas, and display interactive line charts with Matplotlib, providing a user‑friendly interface for non‑technical users.

Data VisualizationPythonpandas_datareader
0 likes · 7 min read
Building a Python GUI to Visualize World Bank GDP Data with Tkinter, pandas_datareader, and Matplotlib
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jul 1, 2024 · Backend Development

Resolving Data Contamination in Multithreaded Security Testing by Redesigning Class Attributes in Python

This article explains how using a shared class attribute to store open ports in a Python security‑testing framework can cause data contamination across threads, demonstrates the problem with example code, and presents three solutions—reinitializing the attribute, using contextvars, and employing threading.local—to ensure thread‑local isolation and accurate port scanning.

Class AttributesContextVarPython
0 likes · 10 min read
Resolving Data Contamination in Multithreaded Security Testing by Redesigning Class Attributes in Python
21CTO
21CTO
Jun 30, 2024 · Artificial Intelligence

Which Programming Language Is Best for AI? A Comparative Guide

This article surveys the most suitable programming languages for artificial intelligence, examining Python, R, Java, LISP, Prolog, C++, Haskell, JavaScript, and Julia, and outlines their strengths, ecosystem support, and use cases to help developers choose the right tool for AI projects.

AIC++Java
0 likes · 15 min read
Which Programming Language Is Best for AI? A Comparative Guide
JavaEdge
JavaEdge
Jun 28, 2024 · Artificial Intelligence

Designing Agent Personality and Emotion Handling with LangChain Prompt Templates

This article explains how to craft system prompts that give an AI agent a distinct personality and emotional behavior, shows how to implement an emotion‑detection chain, compares ChatPromptTemplate.from_messages with from_template, and integrates the agent into a FastAPI service with full code examples.

AI AgentEmotion DetectionFastAPI
0 likes · 13 min read
Designing Agent Personality and Emotion Handling with LangChain Prompt Templates
Test Development Learning Exchange
Test Development Learning Exchange
Jun 28, 2024 · Fundamentals

Common Python Built-in Functions and Their Usage

This article introduces a collection of essential Python built-in functions—such as print, len, type, range, sum, sorted, abs, round, input, any/all, zip, enumerate, filter, map, reversed, and setdefault—explaining their typical use cases and providing concise code examples for each.

Code ExamplesProgramming FundamentalsPython
0 likes · 5 min read
Common Python Built-in Functions and Their Usage
JavaEdge
JavaEdge
Jun 27, 2024 · Backend Development

Build a FastAPI Chatbot with LangChain and WebSocket – Step‑by‑Step Guide

This tutorial walks through installing FastAPI and related packages, creating a basic FastAPI app, adding chat, PDF, and text endpoints, integrating LangChain tools for AI responses, implementing a WebSocket echo service, and running the server with uvicorn, all illustrated with code snippets and screenshots.

APIBackendFastAPI
0 likes · 8 min read
Build a FastAPI Chatbot with LangChain and WebSocket – Step‑by‑Step Guide
Python Programming Learning Circle
Python Programming Learning Circle
Jun 27, 2024 · Artificial Intelligence

Eight Python Libraries to Accelerate Data Science and Machine Learning Workflows

This article introduces eight Python libraries—Optuna, ITMO_FS, Shap-hypetune, PyCaret, floWeaver, Gradio, Terality, and Torch-Handle—that streamline data science tasks such as hyperparameter optimization, feature selection, model building, visualization, and rapid prototyping, helping users save coding time and improve productivity.

AutomationData ScienceLibraries
0 likes · 11 min read
Eight Python Libraries to Accelerate Data Science and Machine Learning Workflows
Python Programming Learning Circle
Python Programming Learning Circle
Jun 27, 2024 · Artificial Intelligence

Homemade Machine Learning – Python Implementations of Popular Algorithms with Jupyter Notebooks

This article introduces the GitHub "Homemade Machine Learning" project, which provides pure‑Python implementations of common supervised and unsupervised machine‑learning algorithms, complete with mathematical explanations, Jupyter‑Notebook demos, installation instructions, and links to datasets for hands‑on learning.

AIJupyterPython
0 likes · 6 min read
Homemade Machine Learning – Python Implementations of Popular Algorithms with Jupyter Notebooks
Test Development Learning Exchange
Test Development Learning Exchange
Jun 27, 2024 · Fundamentals

Comprehensive Guide to Python Dictionaries: Creation, Access, Modification, Traversal, Comprehensions, and Advanced Techniques

This tutorial provides a thorough overview of Python dictionaries, covering their creation, key‑value access, addition, update, deletion, iteration, comprehensions, safe retrieval with get(), merging, sorting, built‑in functions, and unpacking for function arguments, all illustrated with clear code examples.

Data StructuresPythondictionary
0 likes · 5 min read
Comprehensive Guide to Python Dictionaries: Creation, Access, Modification, Traversal, Comprehensions, and Advanced Techniques
Test Development Learning Exchange
Test Development Learning Exchange
Jun 26, 2024 · Fundamentals

Python collections module: Counter, defaultdict, deque, namedtuple, ChainMap, custom containers, heapq, and LRU cache examples

This article introduces several useful classes from Python's collections module—including Counter, defaultdict, deque, namedtuple, ChainMap, UserList/UserDict/UserString, as well as heapq and an OrderedDict‑based LRU cache—explaining their purposes and providing ready‑to‑run code examples for each.

ChainMapCollectionsCounter
0 likes · 6 min read
Python collections module: Counter, defaultdict, deque, namedtuple, ChainMap, custom containers, heapq, and LRU cache examples
Python Programming Learning Circle
Python Programming Learning Circle
Jun 26, 2024 · Fundamentals

Effective Use of Underscores in Python: Tips and Tricks

This article explains how the underscore character in Python can be leveraged for quick console result reuse, selective tuple unpacking, protected and private attribute naming, and numeric readability, providing practical code examples that illustrate each technique for more efficient and readable code.

Coding TipsPythondata handling
0 likes · 3 min read
Effective Use of Underscores in Python: Tips and Tricks
DataFunTalk
DataFunTalk
Jun 26, 2024 · Big Data

Evolution of the Big Data + AI Development Paradigm and Alibaba Cloud’s Integrated Architecture

This article examines how the big‑data AI development paradigm has shifted from model‑centric to data‑centric workflows, outlines the challenges of integrating data and AI teams, and details Alibaba Cloud’s end‑to‑end, serverless big‑data platform—including MaxCompute, Hologres, MaxFrame, Object Table, and vector search—designed to accelerate large‑scale AI applications.

AI integrationMaxComputePython
0 likes · 20 min read
Evolution of the Big Data + AI Development Paradigm and Alibaba Cloud’s Integrated Architecture
Model Perspective
Model Perspective
Jun 26, 2024 · Artificial Intelligence

Unlocking Fraud Detection: Build a Hidden Markov Model with Python

This article explains the fundamentals and mathematics of Hidden Markov Models, illustrates their core components and basic problems, and walks through a complete Python implementation for credit‑card fraud detection, including data preparation, model training, and evaluation.

Hidden Markov ModelPythonTime Series
0 likes · 10 min read
Unlocking Fraud Detection: Build a Hidden Markov Model with Python
Test Development Learning Exchange
Test Development Learning Exchange
Jun 26, 2024 · Fundamentals

Overview of Common Python Standard Library Modules

This article provides practical code examples for using key Python standard library modules—including os, sys, json, datetime, re, math, collections, urllib, random, and logging—to perform common tasks such as file operations, system info, data parsing, date handling, pattern matching, calculations, data structures, web requests, random generation, and logging.

JSONMathPython
0 likes · 4 min read
Overview of Common Python Standard Library Modules
JavaEdge
JavaEdge
Jun 26, 2024 · Artificial Intelligence

Add Memory to LangChain Agents for Context‑Aware Multi‑Turn Conversations

This guide walks through adding ConversationBufferMemory to a LangChain agent, covering tool creation, memory setup, agent initialization with OpenAI function calling, prompt inspection, configuration tweaks using agent_kwargs, and best‑practice considerations for maintaining context in multi‑turn AI conversations.

ConversationBufferMemoryLangChainOpenAI Functions
0 likes · 8 min read
Add Memory to LangChain Agents for Context‑Aware Multi‑Turn Conversations
Python Programming Learning Circle
Python Programming Learning Circle
Jun 24, 2024 · Fundamentals

Python List Comprehensions and Linear Algebra: From Simple Loops to Matrix Operations

This article demonstrates how Python’s expressive syntax—especially list comprehensions, dictionary and tuple comprehensions, and conditional expressions—can be used to implement fundamental linear‑algebra operations such as vector scaling, dot products, matrix transposition, projection, distance calculation, and even a one‑line linear solver, all illustrated with clear code examples.

Code ExamplesPythoneducational
0 likes · 15 min read
Python List Comprehensions and Linear Algebra: From Simple Loops to Matrix Operations
Python Programming Learning Circle
Python Programming Learning Circle
Jun 24, 2024 · Backend Development

Technical Overview of Ticket‑Grabbing: Selenium Automation and API Reverse Engineering

This article explains the ticket‑purchasing workflow, identifies critical timing points for successful ticket grabbing, and presents two common technical approaches—browser automation with Selenium and reverse‑engineering ticket‑booking APIs—to automate the process, while warning about limitations and legal considerations.

Pythonreverse engineeringselenium
0 likes · 6 min read
Technical Overview of Ticket‑Grabbing: Selenium Automation and API Reverse Engineering
JavaEdge
JavaEdge
Jun 23, 2024 · Artificial Intelligence

Build a Cultural Name‑Generator with LangChain, Custom Prompts, and Output Parsers

This tutorial walks through installing LangChain, creating an LLM (via own GPU resources or third‑party APIs), designing parameterized prompt templates, implementing a custom output parser for structured results, and running a complete Python example that generates culturally specific names.

AILLMLangChain
0 likes · 7 min read
Build a Cultural Name‑Generator with LangChain, Custom Prompts, and Output Parsers
JavaEdge
JavaEdge
Jun 23, 2024 · Artificial Intelligence

What Is LangChain? Features, Pros, Cons, and Setup Guide

This article introduces LangChain, an open‑source framework for building LLM‑powered applications, outlines its key components such as prompts, chains, agents, and retrieval‑augmented generation, compares its advantages and drawbacks, and provides step‑by‑step instructions for setting up a Python development environment.

AILLMLangChain
0 likes · 7 min read
What Is LangChain? Features, Pros, Cons, and Setup Guide
Model Perspective
Model Perspective
Jun 23, 2024 · Artificial Intelligence

Mastering Multi-Objective Optimization with NSGA-II: Theory and Python Example

This article introduces the fundamentals of multi‑objective optimization, explains the NSGA‑II algorithm’s non‑dominated sorting, crowding distance, and selection mechanisms, and demonstrates its application to a production‑line case study with a complete Python implementation and visualized Pareto front.

Evolutionary AlgorithmsNSGA-IIOptimization
0 likes · 10 min read
Mastering Multi-Objective Optimization with NSGA-II: Theory and Python Example
21CTO
21CTO
Jun 21, 2024 · Fundamentals

Why Python Won’t Get a 4.0: The Calendar Versioning Plan Explained

Python’s core team proposes a calendar‑based versioning scheme (PEP 2026) that replaces semantic versioning, assigning versions as 3.YY.micro to make release dates and end‑of‑life clearer, with each release supported for five years and future releases mapped out through 2030.

CalendarVersioningPEP2026Python
0 likes · 5 min read
Why Python Won’t Get a 4.0: The Calendar Versioning Plan Explained
Python Crawling & Data Mining
Python Crawling & Data Mining
Jun 21, 2024 · Backend Development

How to Convert HTTP Headers and Cookies into Python Dictionaries Without Newlines

This article walks through a Python community member's problem of turning raw HTTP header strings and cookies into clean dictionary objects, explains why newline characters cause issues, and provides step‑by‑step code solutions using string replacement, JSON conversion, and built‑in libraries.

Code ExampleData ParsingHTTP headers
0 likes · 6 min read
How to Convert HTTP Headers and Cookies into Python Dictionaries Without Newlines
Test Development Learning Exchange
Test Development Learning Exchange
Jun 20, 2024 · Fundamentals

10 Practical Python Automation Scripts to Boost Productivity

Discover ten useful Python automation scripts—including batch file renaming, web scraping, scheduled email alerts, data backup, social media monitoring, PDF merging, spreadsheet processing, image compression, network checks, and system resource monitoring—that simplify everyday tasks and enhance efficiency.

AutomationDataProcessingPython
0 likes · 8 min read
10 Practical Python Automation Scripts to Boost Productivity
Test Development Learning Exchange
Test Development Learning Exchange
Jun 20, 2024 · Fundamentals

Master Python’s sorted() Function: 10+ Real-World Examples & Advanced Tips

Explore the versatile sorted() built‑in in Python through over ten practical examples, covering basic list and string sorting, custom key functions, reverse ordering, composite criteria, and real‑world use cases like sorting dictionaries and word‑frequency analysis, empowering you to write cleaner, more efficient code.

Pythondata sortingexamples
0 likes · 6 min read
Master Python’s sorted() Function: 10+ Real-World Examples & Advanced Tips
Test Development Learning Exchange
Test Development Learning Exchange
Jun 18, 2024 · Fundamentals

Comprehensive Overview of Python Built‑in Functions, Modules, and Advanced Concepts

This article presents a concise yet thorough guide to essential Python built‑in functions such as map, filter, reduce, sorted, enumerate, zip, any/all, as well as advanced features including lambda expressions, comprehensions, itertools, context managers, partial functions, garbage collection, asyncio, decorators, generators, metaclasses, pathlib, type annotations, and enumerations, each illustrated with clear code examples.

ModulesPythoniterators
0 likes · 14 min read
Comprehensive Overview of Python Built‑in Functions, Modules, and Advanced Concepts
JavaEdge
JavaEdge
Jun 17, 2024 · Artificial Intelligence

Build Simple LLM Agents with LangChain: A Hands‑On Tutorial

This guide explains what AI agents are, how they combine large language models with planning, memory, and tool use, and provides a step‑by‑step LangChain implementation—including environment setup, tool integration, and a runnable example that solves math and performs web searches.

LLMLangChainPython
0 likes · 6 min read
Build Simple LLM Agents with LangChain: A Hands‑On Tutorial
Ops Development & AI Practice
Ops Development & AI Practice
Jun 16, 2024 · Backend Development

Mastering Protocol Buffers 3: From Installation to Real-World Usage

This guide walks you through what Protocol Buffers are, how to install the protoc compiler on macOS, Windows, and Python, explains the proto3 syntax—including messages, fields, enums—and demonstrates compiling .proto files and using the generated code in Python, while highlighting Protobuf's efficiency, extensibility, and multi‑language support.

Data SerializationProtobufProtocol Buffers
0 likes · 7 min read
Mastering Protocol Buffers 3: From Installation to Real-World Usage
Test Development Learning Exchange
Test Development Learning Exchange
Jun 16, 2024 · Fundamentals

Python Basics: Common Questions, Syntax, Data Types, Control Structures, Functions, Modules, and Error Handling

This article provides a comprehensive overview of Python fundamentals for beginners, covering the language’s purpose, basic syntax, data types, control structures, functions, modules, exception handling, input/output, common built‑in functions, advanced concepts like list comprehensions and generators, and typical runtime errors with troubleshooting tips.

Control structuresFunctionsPython
0 likes · 8 min read
Python Basics: Common Questions, Syntax, Data Types, Control Structures, Functions, Modules, and Error Handling
Python Programming Learning Circle
Python Programming Learning Circle
Jun 15, 2024 · Fundamentals

Python CLI Tricks: Using -m Modules, Port Testing, Simple Web Server, JSON Formatting, Text Editor, Executable Packaging, Encoding/Decoding, System Info, and File Compression

This article demonstrates practical Python command‑line techniques—including the -m option for running modules, testing network ports, launching a quick HTTP server, formatting JSON, creating a minimal text editor, building executable packages, encoding/decoding data, retrieving system configuration, and compressing files—all without writing additional code.

CLIPythoncommand line
0 likes · 9 min read
Python CLI Tricks: Using -m Modules, Port Testing, Simple Web Server, JSON Formatting, Text Editor, Executable Packaging, Encoding/Decoding, System Info, and File Compression
Python Programming Learning Circle
Python Programming Learning Circle
Jun 15, 2024 · Fundamentals

Six Practical Python Tips to Improve Coding Efficiency

This article presents six practical Python techniques—including exception handling, list comprehensions, regular expressions, web scraping with BeautifulSoup, lambda functions, and simple data visualizations using matplotlib—to help developers write cleaner, more efficient code and enhance their programming workflow.

Data VisualizationPythonWeb Scraping
0 likes · 6 min read
Six Practical Python Tips to Improve Coding Efficiency