Tagged articles

Python

5000 articles · Page 30 of 50
Sohu Tech Products
Sohu Tech Products
Sep 13, 2023 · Artificial Intelligence

Implementing Perceptual Hash for Image Similarity Matching in Mini Programs

To automate matching of theme‑image URLs in a mini‑program skin‑changing feature, the author adopts perceptual hashing—using algorithms such as aHash, pHash and dHash—to generate compact 64‑bit fingerprints, compare them via Hamming distance, and reliably identify visually similar images despite minor edits or scaling.

PythonaHashdHash
0 likes · 11 min read
Implementing Perceptual Hash for Image Similarity Matching in Mini Programs
Efficient Ops
Efficient Ops
Sep 12, 2023 · Operations

Understanding Prometheus Metric Types: Counters, Gauges, Histograms & Summaries

This article explains how metrics are used to monitor software performance, introduces basic metric components and dimensional metrics, compares Prometheus, OpenMetrics and OpenTelemetry standards, and provides detailed guidance on Prometheus metric types—Counter, Gauge, Histogram, and Summary—with code examples and query patterns.

PrometheusPythonmetrics
0 likes · 18 min read
Understanding Prometheus Metric Types: Counters, Gauges, Histograms & Summaries
Test Development Learning Exchange
Test Development Learning Exchange
Sep 12, 2023 · Artificial Intelligence

Various Anomaly Detection Techniques with Python Code Examples

This article introduces ten common anomaly detection approaches—including statistical thresholds, boxplots, clustering, isolation forest, LOF, collaborative filtering, robust covariance, NLP, computer‑vision, and time‑series methods—each accompanied by concise Python code snippets illustrating how to identify outliers in different data domains.

ClusteringPythonStatistics
0 likes · 9 min read
Various Anomaly Detection Techniques with Python Code Examples
Bilibili Tech
Bilibili Tech
Sep 12, 2023 · Frontend Development

Font2svg: Converting Fonts to SVG for Efficient Web Rendering

Font2svg converts large font glyphs into on‑demand SVG paths using Python’s freetype‑py and svgpathtools, dramatically shrinking download size, speeding page loads, and improving user experience, with CDN‑served SVGs, a lightweight front‑end injector, and graceful fallback, as demonstrated by a 98 % size reduction in a Bilibili case study.

Font RenderingPythonSVG
0 likes · 15 min read
Font2svg: Converting Fonts to SVG for Efficient Web Rendering
Test Development Learning Exchange
Test Development Learning Exchange
Sep 11, 2023 · Fundamentals

Why Do Data Analysis? 10 Practical Python Data Analysis Scenarios with Code Examples

The article explains the importance of data analysis for business insight, problem detection, decision support, operational optimization, forecasting, and competitiveness, and then presents ten practical Python code scenarios covering data loading, cleaning, filtering, aggregation, visualization, statistics, transformation, time‑series analysis, export, and machine‑learning applications.

Data AnalysisData ScienceData Visualization
0 likes · 7 min read
Why Do Data Analysis? 10 Practical Python Data Analysis Scenarios with Code Examples
Model Perspective
Model Perspective
Sep 11, 2023 · Artificial Intelligence

Why Chinese Word Segmentation Matters: Techniques, Challenges, and Python Demo

This article explores Chinese word segmentation, illustrating its linguistic nuances with a humorous example, explains key methods—including dictionary‑based, statistical, and deep‑learning approaches—and provides Python code using a simple dictionary algorithm and the popular jieba library to demonstrate practical implementation.

Chinese NLPNatural Language ProcessingPython
0 likes · 6 min read
Why Chinese Word Segmentation Matters: Techniques, Challenges, and Python Demo
Tencent Cloud Developer
Tencent Cloud Developer
Sep 11, 2023 · Fundamentals

Understanding Python's Global Interpreter Lock (GIL) and Its Impact

The article explains Python’s Global Interpreter Lock—its historical origins, how CPython’s tick‑based and later time‑slice schedulers manage thread execution, why it limits multi‑core performance, common multiprocessing workarounds, and the difficulties of removing it despite recent proposals for a GIL‑free build.

GILPerformancePython
0 likes · 15 min read
Understanding Python's Global Interpreter Lock (GIL) and Its Impact
IT Services Circle
IT Services Circle
Sep 11, 2023 · Artificial Intelligence

Mojo: Modular AI’s New High‑Performance Programming Language for AI Research and Production

Mojo, the new language from Modular AI founded by Chris Lattner, blends Python’s ease of use with C‑level performance via MLIR, offers a Linux‑only SDK with REPL, VS Code, Jupyter support, and claims speedups of up to 68 000× over Python, with example code and a static‑binary build workflow.

AI programmingC languageHigh Performance
0 likes · 7 min read
Mojo: Modular AI’s New High‑Performance Programming Language for AI Research and Production
Test Development Learning Exchange
Test Development Learning Exchange
Sep 8, 2023 · Frontend Development

Advanced Playwright Practices and Best Practices for Efficient End-to-End Testing

This article outlines ten advanced Playwright techniques—including the Page Object Pattern, async handling, popup and frame management, data‑driven testing, parallel execution, test data and environment management, logging, CI integration, and regular maintenance—to help developers build more reliable and scalable end‑to‑end test suites.

CI/CDPage Object PatternPlaywright
0 likes · 11 min read
Advanced Playwright Practices and Best Practices for Efficient End-to-End Testing
Python Programming Learning Circle
Python Programming Learning Circle
Sep 8, 2023 · Fundamentals

Python Basic Types and Common Operations

This article provides a comprehensive overview of Python's fundamental data types—including int, float, str, list, dict, set, and tuple—and details common operations, methods, built‑in functions, and file handling techniques essential for mastering basic Python programming.

PythonString Methodsbasics
0 likes · 19 min read
Python Basic Types and Common Operations
Model Perspective
Model Perspective
Sep 6, 2023 · Fundamentals

How Box‑Cox Transformation Turns Skewed Data Into Normal Distributions

Box‑Cox transformation, introduced by Box and Cox in 1964, corrects skewed data to approximate normality by optimizing a λ parameter via maximum likelihood, enabling more accurate statistical modeling and machine‑learning predictions, as demonstrated with a crime‑rate dataset and Shapiro‑Wilk tests.

Box-CoxNormalityPython
0 likes · 8 min read
How Box‑Cox Transformation Turns Skewed Data Into Normal Distributions
Python Programming Learning Circle
Python Programming Learning Circle
Sep 6, 2023 · Backend Development

Using PyInstaller and Nuitka to Package Python Applications: Experience and Step‑by‑Step Guide

This article compares PyInstaller and Nuitka for converting Python projects into standalone executables, shares practical experiences—including size and speed differences—and provides a detailed installation and command‑line guide for Nuitka with code examples and post‑build dependency handling.

NuitkaPackagingPyInstaller
0 likes · 6 min read
Using PyInstaller and Nuitka to Package Python Applications: Experience and Step‑by‑Step Guide
Test Development Learning Exchange
Test Development Learning Exchange
Sep 4, 2023 · Frontend Development

Using Playwright in Python to Select, Click, Fill, and Retrieve Attributes from Web Page Elements

This guide demonstrates how to use Python's Playwright library to select single or multiple elements via CSS selectors, click buttons, fill form fields, and retrieve element attributes, providing example code that opens a browser, navigates to a page, and performs these interactions.

PlaywrightPythonWeb Interaction
0 likes · 3 min read
Using Playwright in Python to Select, Click, Fill, and Retrieve Attributes from Web Page Elements
Python Programming Learning Circle
Python Programming Learning Circle
Sep 2, 2023 · Fundamentals

Python Decorators: Ten Practical Custom Decorators with Code Examples

This article explains Python decorators, a powerful feature for modifying functions or classes, and provides ten practical custom decorators—including @timer, @memoize, @validate_input, @log_results, @suppress_errors, @validate_output, @retry, @visualize_results, @debug, and @deprecated—each with clear explanations and complete code samples.

PerformancePythonValidation
0 likes · 9 min read
Python Decorators: Ten Practical Custom Decorators with Code Examples
Model Perspective
Model Perspective
Sep 1, 2023 · Fundamentals

Unlocking the Power of Finite State Transducers: From Theory to Python Implementation

This article introduces finite‑state transducers, explains their mathematical definition, illustrates state‑transition examples such as binary counters, word detection, and parentheses matching, explores key applications in speech synthesis, spell‑checking, lemmatization, transliteration, and lexical analysis, and provides a concise Python implementation.

Natural Language ProcessingPythonautomata theory
0 likes · 9 min read
Unlocking the Power of Finite State Transducers: From Theory to Python Implementation
Test Development Learning Exchange
Test Development Learning Exchange
Aug 31, 2023 · Frontend Development

Using Playwright for UI Automation: Handling Dialogs, File Uploads, and Executing JavaScript

This article demonstrates how to use the Playwright library in Python to automate common UI interactions such as dismissing dialog boxes, uploading single or multiple files (including from a folder), and executing JavaScript code on web pages, providing complete code examples for each task.

Dialog HandlingJavaScript ExecutionPlaywright
0 likes · 6 min read
Using Playwright for UI Automation: Handling Dialogs, File Uploads, and Executing JavaScript
Model Perspective
Model Perspective
Aug 31, 2023 · Artificial Intelligence

Master Feature Selection: From Filters to PCA with Python

This article explains why selecting the right features is essential for machine learning, outlines the general workflow, compares filter, wrapper, and embedded methods, demonstrates statistical tests and Python code examples, and shows how PCA can synthesize features for dimensionality reduction.

PCAPythonchi-square
0 likes · 18 min read
Master Feature Selection: From Filters to PCA with Python
Architect
Architect
Aug 31, 2023 · Artificial Intelligence

Building a Custom LLM Chatbot with LangChain, ChromaDB, and LLaMA‑2

This tutorial explains how to leverage generative AI tools—including LLMs, embedding models, vector databases, and the LangChain framework—to create a custom chatbot that answers user queries using a knowledge base, with step‑by‑step code examples for Google Colab.

EmbeddingLLMLangChain
0 likes · 15 min read
Building a Custom LLM Chatbot with LangChain, ChromaDB, and LLaMA‑2
Test Development Learning Exchange
Test Development Learning Exchange
Aug 30, 2023 · Frontend Development

Playwright Automation Script for End-to-End H5 User Flow (Registration, Login, Checkout)

This tutorial provides a complete Playwright Python script that automates a typical H5 e‑commerce user journey—including registration, login, address entry, product selection, cart addition, checkout, order review, and screenshot capture—while explaining how to adapt URLs and selectors for your own site.

PlaywrightPythone2e
0 likes · 4 min read
Playwright Automation Script for End-to-End H5 User Flow (Registration, Login, Checkout)
Model Perspective
Model Perspective
Aug 30, 2023 · Artificial Intelligence

How Gradient Descent Trains Neural Networks: A Blind Hiker’s Journey

This article uses a blindfolded mountain‑climbing analogy to explain how gradient descent trains neural networks, covering cost functions, learning rates, iterative updates, and provides a Python implementation for a simple three‑layer network example.

AIBackpropagationNeural Network
0 likes · 10 min read
How Gradient Descent Trains Neural Networks: A Blind Hiker’s Journey
21CTO
21CTO
Aug 29, 2023 · Artificial Intelligence

Mojo vs Python: Does the New AI Language Really Deliver 36,000× Speedup?

The article examines Modular's new Mojo language, its claim of massive performance gains over Python for AI workloads, presents benchmark code and results, discusses its origins, investment interest, and current beta status, concluding that while impressive, the 36,000× claim is overstated.

AI programmingMatrix multiplicationMojo
0 likes · 8 min read
Mojo vs Python: Does the New AI Language Really Deliver 36,000× Speedup?
Test Development Learning Exchange
Test Development Learning Exchange
Aug 28, 2023 · Frontend Development

Python Playwright UI Automation Tutorial

This article provides a comprehensive guide to learning Python Playwright for UI automation, covering installation, basic concepts, script writing, page interactions, element handling, multi-page management, browser contexts, waiting strategies, testing, and advanced practices.

PlaywrightPythonUI automation
0 likes · 5 min read
Python Playwright UI Automation Tutorial
Python Crawling & Data Mining
Python Crawling & Data Mining
Aug 28, 2023 · Fundamentals

How to Group Connected People Using Pandas and NetworkX in Python

An experienced Python user demonstrates how to group related individuals into connected components using pandas for data manipulation and networkx for graph analysis, providing complete code examples, visualizations, and step-by-step explanations to help readers solve similar connectivity problems.

Pythongraph connectivitynetworkx
0 likes · 6 min read
How to Group Connected People Using Pandas and NetworkX in Python
Test Development Learning Exchange
Test Development Learning Exchange
Aug 27, 2023 · Fundamentals

20 Common Python Built-in Constants with Example Code

This article introduces twenty frequently used Python built-in constants—including True, False, None, NotImplemented, Ellipsis, __debug__, and various exception classes—explaining their meanings and providing clear code snippets that demonstrate how each constant can be applied in typical programming scenarios.

Built-in ConstantsPythonexamples
0 likes · 7 min read
20 Common Python Built-in Constants with Example Code
Model Perspective
Model Perspective
Aug 26, 2023 · Artificial Intelligence

Why Accuracy Isn’t Enough: Mastering MCC for Imbalanced Classification

This article reviews common classification evaluation metrics—accuracy, precision, recall, and F1—explains their limitations on imbalanced data, and introduces the Matthews Correlation Coefficient (MCC) with Python implementations to provide a more reliable performance measure.

ClassificationMCCPython
0 likes · 5 min read
Why Accuracy Isn’t Enough: Mastering MCC for Imbalanced Classification
Python Programming Learning Circle
Python Programming Learning Circle
Aug 26, 2023 · Fundamentals

A Comprehensive Overview of Popular Python IDEs and Editors

This article reviews the most popular Python IDEs and code editors, comparing their features, compatibility, plugins, advantages, and disadvantages, helping developers—from beginners to advanced users—choose the right development environment for general programming, data science, AI, and machine learning tasks.

Development ToolsIDEPython
0 likes · 9 min read
A Comprehensive Overview of Popular Python IDEs and Editors
Test Development Learning Exchange
Test Development Learning Exchange
Aug 26, 2023 · Fundamentals

Understanding Python Virtual Environments: pythonvenv, virtualenv, and conda with API Automation Example

This article explains the concept and importance of Python virtual environments, compares three popular tools—pythonvenv, virtualenv, and conda—provides step‑by‑step commands for creating and activating environments on different operating systems, and includes a practical API automation code example demonstrating their use.

Pythoncondapythonvenv
0 likes · 4 min read
Understanding Python Virtual Environments: pythonvenv, virtualenv, and conda with API Automation Example
Model Perspective
Model Perspective
Aug 25, 2023 · Fundamentals

Master Plotly Sankey Diagrams: From Web Traffic to Energy Flow

This article explains the origins and applications of Sankey diagrams, demonstrates how to create them with Plotly in Python across various scenarios such as website navigation, energy conversion, cost breakdown, financial flows, data migration, and confusion matrix visualization, and provides complete code examples.

PlotlyPythonSankey diagram
0 likes · 9 min read
Master Plotly Sankey Diagrams: From Web Traffic to Energy Flow
php Courses
php Courses
Aug 25, 2023 · Artificial Intelligence

Meta Launches Code Llama: An Advanced AI Coding Model

Meta introduced Code Llama, a Llama 2‑based AI coding model available in base, Python‑specific, and instruction‑tuned versions across 7B, 13B, and 34B sizes, claiming superior benchmark performance and free community licensing for research and commercial use.

AI codingCode LlamaMeta
0 likes · 5 min read
Meta Launches Code Llama: An Advanced AI Coding Model
Test Development Learning Exchange
Test Development Learning Exchange
Aug 23, 2023 · Operations

Server Monitoring Strategies and Tools Using Python

This article outlines key strategies and Python tools for server monitoring, including defining metrics, utilizing libraries like psutil and requests, log analysis, load testing with Locust and PyTest, and implementing automated alerts for high availability.

Load TestingPythonServer Monitoring
0 likes · 4 min read
Server Monitoring Strategies and Tools Using Python
Model Perspective
Model Perspective
Aug 23, 2023 · Artificial Intelligence

Master Logistic Regression: Binary, Multiclass, and Ordered Extensions with Python

This article explains logistic regression and its extensions—binary, multiclass (softmax), and ordered logistic regression—covering mathematical foundations, optimization objectives, real‑world applications, and Python implementations using scikit‑learn with code examples and visual illustrations.

Logistic RegressionPythonbinary classification
0 likes · 15 min read
Master Logistic Regression: Binary, Multiclass, and Ordered Extensions with Python
DataFunTalk
DataFunTalk
Aug 22, 2023 · Artificial Intelligence

Building Complex Distributed Systems with Ray: An AutoML Case Study and Cloud‑Native Deployment

This article explains how the Ray distributed computing engine simplifies the design, deployment, and operation of complex cloud‑native distributed systems—illustrated through an AutoML service example—by detailing system complexity, Ray’s core concepts, resource customization, runtime environments, monitoring, and ecosystem integrations.

AIAutoMLCloud Native
0 likes · 26 min read
Building Complex Distributed Systems with Ray: An AutoML Case Study and Cloud‑Native Deployment
Python Crawling & Data Mining
Python Crawling & Data Mining
Aug 22, 2023 · Fundamentals

Label Excel Rows by Keywords with Pandas: A Quick Python Guide

This article demonstrates how to use Python's pandas library to read an Excel file, define a function that matches specific brand keywords in a column, assign corresponding labels such as “automobile brand” or “sports brand” to a new column, and output the results, while also providing the full code example and tips for sharing data and seeking help.

ExcelPythondata-processing
0 likes · 5 min read
Label Excel Rows by Keywords with Pandas: A Quick Python Guide
Model Perspective
Model Perspective
Aug 19, 2023 · Artificial Intelligence

Unlocking Hidden Patterns: How Tensor Decomposition Powers Modern AI

This article introduces tensors and tensor decomposition, explains core operations, explores CP and other factorization methods, and demonstrates Python implementations for music and movie recommendation systems, highlighting how these techniques reveal hidden structures in large‑scale data.

CP decompositionPythonbig data
0 likes · 15 min read
Unlocking Hidden Patterns: How Tensor Decomposition Powers Modern AI
DataFunTalk
DataFunTalk
Aug 17, 2023 · Artificial Intelligence

Introduction to LangChain: Concepts, Tools, and Example Applications

This article introduces the LangChain framework, explains its core concepts such as models, prompts, agents, memory, indexes, and tools, provides detailed code examples for each component, and demonstrates practical applications ranging from chatbots to image generation, helping readers understand and build powerful LLM-powered solutions.

AgentsLangChainPython
0 likes · 27 min read
Introduction to LangChain: Concepts, Tools, and Example Applications
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 17, 2023 · Artificial Intelligence

Getting Started with YOLOv8 on the Ultralytics Platform: Installation, Command‑Line Usage, and Model Training

This article introduces the YOLOv8 object‑detection framework on the Ultralytics platform, covering environment setup, command‑line and Python APIs for inference, model‑file options, result interpretation, data annotation, training procedures, and exporting models to various deployment formats.

Object DetectionPythonUltralytics
0 likes · 14 min read
Getting Started with YOLOv8 on the Ultralytics Platform: Installation, Command‑Line Usage, and Model Training
MaGe Linux Operations
MaGe Linux Operations
Aug 16, 2023 · Fundamentals

How Layered Architecture Keeps a 30K‑File Python Codebase Manageable

This article explains how a massive Python project with nearly 30,000 files uses a layered architecture and Import Linter to enforce dependency rules, reduce complexity, track technical debt, and improve maintainability, while also discussing the trade‑offs and practical implementation details.

Pythoncode organizationimport-linter
0 likes · 15 min read
How Layered Architecture Keeps a 30K‑File Python Codebase Manageable
Python Programming Learning Circle
Python Programming Learning Circle
Aug 16, 2023 · Backend Development

Comprehensive List and Comparison of Python Web Frameworks

This article presents a curated collection of Python web frameworks, explains what a web framework is, outlines their purposes, and provides a ranked overview of each framework's official site, advantages, and disadvantages to help developers choose the most suitable option for their projects.

DjangoFastAPIFlask
0 likes · 23 min read
Comprehensive List and Comparison of Python Web Frameworks
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 16, 2023 · Artificial Intelligence

Deep Dive into OCR – Chapter 2: Development and Classification of OCR Technology

This article provides a comprehensive overview of OCR technology, detailing the evolution from traditional hand‑crafted methods to modern deep‑learning approaches, describing image preprocessing, text detection and recognition pipelines, summarizing classic machine‑learning algorithms, and presenting a practical OpenCV implementation with Python code.

OCROpenCVPython
0 likes · 23 min read
Deep Dive into OCR – Chapter 2: Development and Classification of OCR Technology
Test Development Learning Exchange
Test Development Learning Exchange
Aug 14, 2023 · Fundamentals

Data Analysis Report Writing and Presentation: Code Examples for Various Business Scenarios

This guide explains how to write and present data analysis reports across various business scenarios, providing step‑by‑step Python code using pandas and matplotlib to visualize sales trends, survey results, patient statistics, investment performance, and user behavior, along with a comprehensive report template.

Business IntelligencePythonpandas
0 likes · 9 min read
Data Analysis Report Writing and Presentation: Code Examples for Various Business Scenarios
Python Programming Learning Circle
Python Programming Learning Circle
Aug 14, 2023 · Backend Development

Common Python Scheduling Techniques and Tools

This article reviews multiple ways to implement periodic tasks in Python, covering simple loops with sleep, libraries such as Timeloop, threading.Timer, sched, schedule, the APScheduler framework, as well as distributed solutions like Celery and Apache Airflow, and provides code examples for each method.

APSchedulerAirflowCron
0 likes · 23 min read
Common Python Scheduling Techniques and Tools
Model Perspective
Model Perspective
Aug 13, 2023 · Artificial Intelligence

Unlocking Hidden Markov Models: Theory, Algorithms, and Python Implementations

This article explains Hidden Markov Models, covering their core concepts, basic elements, the three fundamental problems with forward, Viterbi, and Baum‑Welch algorithms, provides a weather illustration, detailed Python code using hmmlearn, and a real‑world earthquake case study, highlighting practical implementation steps.

HMMHidden Markov ModelPython
0 likes · 15 min read
Unlocking Hidden Markov Models: Theory, Algorithms, and Python Implementations
Wu Shixiong's Large Model Academy
Wu Shixiong's Large Model Academy
Aug 13, 2023 · Fundamentals

Multi-Source BFS Solution for the 2023Q2B Mars Terraforming Challenge

The article presents a grid‑based Mars terraforming problem where cells are marked YES, NO, or NA, and asks to determine the minimum number of solar days needed to convert all convertible (NO) cells to habitable (YES) using a multi‑source BFS approach, returning –1 if impossible, with full Python implementation and complexity analysis.

BFSGridPython
0 likes · 8 min read
Multi-Source BFS Solution for the 2023Q2B Mars Terraforming Challenge
Model Perspective
Model Perspective
Aug 12, 2023 · Fundamentals

Unlocking Bayesian Methods: Theory, Real-World Examples, and Python Demo

This article explains Bayesian methods—its core theorem, historical and everyday applications, a detailed medical testing model, and provides a step‑by‑step Python calculation illustrating how prior probabilities and new evidence combine to produce posterior probabilities.

Bayesian inferenceMedical TestingPython
0 likes · 6 min read
Unlocking Bayesian Methods: Theory, Real-World Examples, and Python Demo
21CTO
21CTO
Aug 11, 2023 · Backend Development

How Layered Architecture Keeps a 28K‑File Python Monolith Manageable

This article explains how a massive Python codebase with over 27,000 modules is organized using a layered architecture, enforced with Import Linter, to reduce complexity, track technical debt, and enable independent development across clients and territories.

Pythoncode organizationimport-linter
0 likes · 14 min read
How Layered Architecture Keeps a 28K‑File Python Monolith Manageable
Python Programming Learning Circle
Python Programming Learning Circle
Aug 11, 2023 · Fundamentals

13 Advanced Python Scripts for Everyday Tasks

This article presents thirteen practical Python scripts—including speed testing, Google searching, web automation, lyric fetching, EXIF extraction, OCR, image cartoonization, recycle‑bin clearing, photo enhancement, Windows version detection, PDF‑to‑image conversion, hex‑to‑RGB conversion, and website status checking—each accompanied by ready‑to‑run code examples.

AutomationPythonTutorial
0 likes · 9 min read
13 Advanced Python Scripts for Everyday Tasks
Test Development Learning Exchange
Test Development Learning Exchange
Aug 10, 2023 · Fundamentals

Python Built‑in Functions for Data Type Casting

This article explains how to use Python's built‑in casting functions—int(), float(), str(), bool(), list(), tuple(), set() and dict()—to convert between numeric, string, boolean, sequence, and mapping types, providing clear code examples for each conversion scenario.

ListPythonbool
0 likes · 14 min read
Python Built‑in Functions for Data Type Casting
Architect's Guide
Architect's Guide
Aug 10, 2023 · Artificial Intelligence

Getting Started with LangChain: Building LLM Applications in Python

This tutorial introduces LangChain, an open‑source Python framework that provides unified model access, prompt management, memory, retrieval, and tool integration, enabling developers to quickly prototype AI‑driven applications using large language models and various external data sources.

AgentsLLMLangChain
0 likes · 13 min read
Getting Started with LangChain: Building LLM Applications in Python
Test Development Learning Exchange
Test Development Learning Exchange
Aug 9, 2023 · Fundamentals

Understanding Python Lists: Creation, Operations, and Manipulation

This article explains why Python lists are essential, how to create them (empty, with integers, strings, mixed types, or nested lists), outlines their key characteristics such as order and mutability, and demonstrates common operations—including indexing, slicing, adding, removing, modifying, and retrieving element indices—through clear code examples.

Data StructuresListProgramming Fundamentals
0 likes · 12 min read
Understanding Python Lists: Creation, Operations, and Manipulation
Model Perspective
Model Perspective
Aug 9, 2023 · Fundamentals

Master the Kelly Criterion: Optimize Betting and Investment Returns

This article explains the Kelly Criterion, its mathematical formula, practical application with a biased‑coin example, detailed derivation, Python simulation code, and a balanced evaluation of its strengths and limitations for gambling and investment strategies.

Betting StrategyKelly CriterionPython
0 likes · 11 min read
Master the Kelly Criterion: Optimize Betting and Investment Returns
Wu Shixiong's Large Model Academy
Wu Shixiong's Large Model Academy
Aug 9, 2023 · Interview Experience

Compute the Longest Broadcast Response Time with BFS

This article explains a graph‑based interview problem where, given an undirected network of N nodes and their connections, you must determine the minimum time for a broadcast node to receive all responses, and provides a full Python BFS solution with complexity analysis.

BFSGraphPython
0 likes · 6 min read
Compute the Longest Broadcast Response Time with BFS
Test Development Learning Exchange
Test Development Learning Exchange
Aug 8, 2023 · Fundamentals

Master Python Metaprogramming: Metaclasses, Decorators, and Property Accessors Explained

Learn how Python's metaprogramming lets you dynamically create, modify, and control classes and functions at runtime, covering metaclasses for singleton patterns and class registration, decorators for caching, timing, and logging, and property accessors for validation and computed attributes, each illustrated with concrete code examples.

BackendPythonTutorial
0 likes · 7 min read
Master Python Metaprogramming: Metaclasses, Decorators, and Property Accessors Explained
Wu Shixiong's Large Model Academy
Wu Shixiong's Large Model Academy
Aug 8, 2023 · Interview Experience

Unlock the Golden Treasure Box: Algorithmic Solutions for Interview Questions

This article presents three interview‑style algorithm problems—a golden treasure‑box search, an inequality‑set validator with maximum‑difference calculation, and a smallest‑number‑after‑removing‑digits task—each with clear problem statements, constraints, step‑by‑step simulation logic, and full Python code implementations.

Data StructuresPythonSimulation
0 likes · 10 min read
Unlock the Golden Treasure Box: Algorithmic Solutions for Interview Questions
Test Development Learning Exchange
Test Development Learning Exchange
Aug 7, 2023 · Databases

Python Code Examples for Connecting to Common Databases

This article provides concise Python code snippets for connecting to and querying a variety of popular databases—including MySQL, PostgreSQL, SQLite, MongoDB, Oracle, SQL Server, Redis, Elasticsearch, Cassandra, Couchbase, Firebase, DynamoDB, Neo4j, and InfluxDB—illustrating the essential steps for each.

Code ExamplesMongoDBMySQL
0 likes · 8 min read
Python Code Examples for Connecting to Common Databases
Test Development Learning Exchange
Test Development Learning Exchange
Aug 6, 2023 · Fundamentals

Practical Python Garbage Collection and Memory Analysis: 10 Useful Code Examples

This article presents ten practical Python code examples demonstrating various garbage collection mechanisms and memory‑analysis tools, including reference counting, cyclic references, object inspection, tracemalloc, memory_profiler, pympler, and objgraph, to help developers understand and optimize memory usage.

Pythondebugginggarbage collection
0 likes · 4 min read
Practical Python Garbage Collection and Memory Analysis: 10 Useful Code Examples