Tagged articles
5000 articles
Page 16 of 50
Test Development Learning Exchange
Test Development Learning Exchange
Nov 16, 2024 · Artificial Intelligence

Basic Operations with NumPy Arrays in Python

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

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

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

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

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

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

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

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

20 Practical Tips for Handling JSON Data in Python

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

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

How Does the Python VM Capture Exceptions?

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

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

20 Essential Pandas Data Processing Methods with Code Examples

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

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

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

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

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

15 Common Python Variable Assignment Techniques

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

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

Common Python Built‑in Functions with Examples

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

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

Enable Python Probe for LLM Observability on Alibaba Cloud ACK

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

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

Comprehensive Guide to Common NumPy Array Operations

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

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

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

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

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

9 Best Practices for Enterprise Python Development

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

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

40 Essential Python pandas Scripts for Excel Data Processing

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

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

Overview of Common Python Standard Library Modules

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

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

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

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

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

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

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

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

Why Python Does Not Need a Traditional Main Function

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

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

Image Processing with Python: Pillow and OpenCV Guide

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

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

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

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

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

Understanding Python Method Resolution Order (MRO)

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

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

Common Python Errors and How to Fix Them

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

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

Python Data Parsing and Large‑Scale Data Processing Techniques

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

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

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

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

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

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

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

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

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

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

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

Fixing Chinese Character Garbling in Python Web Scraping

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

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

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

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

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

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

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

Iterator ProtocolPythonSpecial Methods
0 likes · 19 min read
Understanding Python Magic (Dunder) Methods: Definitions, Examples, and Best Practices
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Oct 28, 2024 · Fundamentals

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

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

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

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

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

Pythondata-visualizationpandas
0 likes · 10 min read
Python Data Visualization with Matplotlib: Steps, Functions, and Practical Examples
Top Architect
Top Architect
Oct 26, 2024 · Information Security

WiFi Password Cracking Tool Using Python and PyWiFi

This article demonstrates how to build a Python GUI tool with Tkinter and the PyWiFi library to scan nearby Wi‑Fi networks, load a password dictionary, and perform brute‑force attempts to discover the correct Wi‑Fi password, including environment setup, code snippets, and execution results.

PythonTkinterWiFi
0 likes · 13 min read
WiFi Password Cracking Tool Using Python and PyWiFi
Test Development Learning Exchange
Test Development Learning Exchange
Oct 26, 2024 · Fundamentals

Master 24 Essential Python Tricks to Write Cleaner, Faster Code

This comprehensive guide walks you through 24 powerful Python techniques—from list, dictionary, and set comprehensions to advanced modules like itertools, functools, and asyncio—showing concise syntax, practical examples, and best practices that help you write more efficient, readable, and maintainable code.

Advanced TechniquesComprehensionsModules
0 likes · 14 min read
Master 24 Essential Python Tricks to Write Cleaner, Faster Code
Python Crawling & Data Mining
Python Crawling & Data Mining
Oct 26, 2024 · Databases

Export MongoDB Data to CSV, Excel, JSON and More with mongo2file

This article introduces the mongo2file Python library that converts MongoDB collections into various table formats such as CSV, Excel, JSON, Pickle, Feather, and Parquet, explains its PyArrow dependency, shows installation and usage examples, discusses performance bottlenecks, and provides API reference details.

CSVData ExportExcel
0 likes · 11 min read
Export MongoDB Data to CSV, Excel, JSON and More with mongo2file
Test Development Learning Exchange
Test Development Learning Exchange
Oct 25, 2024 · Fundamentals

Implementing Dynamic Progress Bars in Python: Using tqdm, Manual Methods, and Various Libraries

This article explains how to create dynamic command‑line progress bars in Python, covering the easy‑to‑use tqdm library, a manual implementation with sys and time, and several alternative libraries such as colorama, rich, alive‑progress, click, progressbar2, and pyfiglet, each with code examples and installation instructions.

Pythoncoloramacommand-line
0 likes · 10 min read
Implementing Dynamic Progress Bars in Python: Using tqdm, Manual Methods, and Various Libraries
Test Development Learning Exchange
Test Development Learning Exchange
Oct 24, 2024 · Fundamentals

Common Built‑in Functions and Popular Third‑Party Libraries in Python with Examples

This article lists essential Python built‑in functions, introduces widely used third‑party libraries such as NumPy, Pandas, Matplotlib, Scikit‑learn, TensorFlow, Requests, Beautiful Soup, Flask/Django, SQLAlchemy, SciPy, Pillow and OpenCV, and provides concrete code examples demonstrating their usage.

PythonThird‑party librariesbuilt-in functions
0 likes · 21 min read
Common Built‑in Functions and Popular Third‑Party Libraries in Python with Examples
Test Development Learning Exchange
Test Development Learning Exchange
Oct 23, 2024 · Fundamentals

Understanding Race Conditions, Deadlocks, Resource Contention, and Data Consistency in Multithreaded Python

This article explains common multithreading problems such as race conditions, deadlocks, resource contention, and data consistency issues, and provides Python code examples that demonstrate synchronization techniques, lock ordering, connection pooling, thread pools, and transaction management to ensure correct and stable concurrent execution.

Data ConsistencyPythonResource Management
0 likes · 10 min read
Understanding Race Conditions, Deadlocks, Resource Contention, and Data Consistency in Multithreaded Python
Test Development Learning Exchange
Test Development Learning Exchange
Oct 22, 2024 · Operations

Key Linux Server Performance Metrics, Monitoring Tools, and a Python Script for Automated Data Collection

When testing Linux server performance, you should monitor key metrics such as CPU usage, memory consumption, disk I/O, network bandwidth, process information, file system usage, system logs, boot and response times, context switches, and interrupts, using tools like top, vmstat, iostat, netstat, and custom Python scripts.

LinuxPythonperformance-monitoring
0 likes · 8 min read
Key Linux Server Performance Metrics, Monitoring Tools, and a Python Script for Automated Data Collection
php Courses
php Courses
Oct 22, 2024 · Backend Development

Structured Approach for Migrating Python Functions to PHP

This guide outlines a systematic method for tracking, testing, and documenting the migration of Python functions to PHP, including creating a mapping table, using version control, writing unit tests, recording edge cases, and conducting regular progress reviews to ensure code quality and functional equivalence.

BackendPHPPython
0 likes · 4 min read
Structured Approach for Migrating Python Functions to PHP
Test Development Learning Exchange
Test Development Learning Exchange
Oct 20, 2024 · Backend Development

Python Examples of Distributed Task Queues, Message Brokers, RPC, and Serialization Libraries

This article provides practical Python code examples for various messaging and serialization tools—including Celery, RQ, Huey, ZeroMQ, kafka‑python, Pika, stomp.py, nats‑py, gRPC, Thrift, Protobuf, Avro, msgpack, and Flatbuffers—demonstrating how to set up producers, consumers, and services for asynchronous processing and data exchange.

Distributed TasksMessage QueuePython
0 likes · 19 min read
Python Examples of Distributed Task Queues, Message Brokers, RPC, and Serialization Libraries
21CTO
21CTO
Oct 19, 2024 · Fundamentals

Why Does Python Still Use the GIL? Understanding Its Role and Alternatives

Python's Global Interpreter Lock (GIL) serializes thread execution to protect memory, but in today's multicore era it creates performance bottlenecks; this article explains what the GIL is, why it exists, its impact on multithreading, and how multiprocessing can bypass its limitations.

GILPythonmultiprocessing
0 likes · 6 min read
Why Does Python Still Use the GIL? Understanding Its Role and Alternatives
IT Services Circle
IT Services Circle
Oct 19, 2024 · Fundamentals

Understanding Python's Virtual Machine Execution and Runtime Stack

This article explains how the Python interpreter initializes its runtime environment, compiles source code into PyCodeObject bytecode, creates stack frames, and executes the bytecode using functions like PyEval_EvalFrame and _PyEval_EvalFrameDefault while detailing the role of the runtime stack and its associated C macros.

PythonRuntime Stackbytecode
0 likes · 21 min read
Understanding Python's Virtual Machine Execution and Runtime Stack
Test Development Learning Exchange
Test Development Learning Exchange
Oct 18, 2024 · Fundamentals

Comprehensive Python 3 Basics: Syntax, Data Types, Control Flow, Functions, Modules, and More

This article provides a thorough introduction to Python 3, covering fundamental syntax, core data types, operators, control structures, functions, modules, file I/O, error handling, object‑oriented concepts, and common standard‑library utilities, complete with runnable code examples for each topic.

Data TypesPythonTutorial
0 likes · 24 min read
Comprehensive Python 3 Basics: Syntax, Data Types, Control Flow, Functions, Modules, and More
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Oct 18, 2024 · Fundamentals

How Python’s Virtual Machine Executes Bytecode: Step‑by‑Step Process

This article explains how the Python interpreter, after runtime initialization, creates a stack frame, invokes a series of C functions such as PyEval_EvalCode, _PyEval_Vector, and _PyEval_EvalFrameDefault to traverse and execute bytecode, and details the underlying runtime stack structures and macro APIs that support instruction evaluation.

C APIPyEvalPython
0 likes · 25 min read
How Python’s Virtual Machine Executes Bytecode: Step‑by‑Step Process
Test Development Learning Exchange
Test Development Learning Exchange
Oct 17, 2024 · Fundamentals

Iterating Dictionaries in Python: Keys, Values, Items, enumerate, Conditional Filtering, and Comprehensions

This guide demonstrates six common ways to iterate over Python dictionaries—including traversing keys, values, key‑value pairs, using enumerate for indexed access, applying conditional filters within loops, and employing dict comprehensions for efficient transformation—while explaining the appropriate use cases and performance considerations.

ItemsKEYSPython
0 likes · 5 min read
Iterating Dictionaries in Python: Keys, Values, Items, enumerate, Conditional Filtering, and Comprehensions
Test Development Learning Exchange
Test Development Learning Exchange
Oct 15, 2024 · Fundamentals

Python Fundamentals: Decorators, List Comprehensions, Generators, Exception Handling, Modules, Threading, Copying, Garbage Collection, *args/**kwargs, Closures, Methods, Process vs Thread, Database Differences, Data Structures, and API Testing

This article provides a comprehensive overview of essential Python concepts—including decorators, list comprehensions, generators, exception handling, modules, threading, shallow and deep copying, garbage collection, variable arguments, closures, method types, process‑thread differences, relational vs NoSQL databases, array vs linked‑list structures, and the distinction between HTTP and Web Service API testing—illustrated with clear explanations and runnable code examples.

Data StructuresGeneratorsPython
0 likes · 10 min read
Python Fundamentals: Decorators, List Comprehensions, Generators, Exception Handling, Modules, Threading, Copying, Garbage Collection, *args/**kwargs, Closures, Methods, Process vs Thread, Database Differences, Data Structures, and API Testing
21CTO
21CTO
Oct 15, 2024 · Artificial Intelligence

Why Mojo Could Redefine AI Programming: Insights from Chris Lattner

The article explores Chris Lattner’s vision for Mojo—a Python‑compatible language designed for AI, GPU, and accelerator workloads—detailing its performance claims, SIMD support, complex‑number handling, and the growing developer community behind it.

AIGPUMojo
0 likes · 9 min read
Why Mojo Could Redefine AI Programming: Insights from Chris Lattner
JavaEdge
JavaEdge
Oct 14, 2024 · Artificial Intelligence

Deploying LLMs with LangServe: A Complete Guide from Setup to Client Calls

This article introduces LangServe, explains its key features for LLM deployment, walks through environment setup, shows how to build a FastAPI‑based REST API with code examples, demonstrates testing via Postman and remote client calls, and summarizes its benefits for AI model serving.

AI model servingFastAPILLM deployment
0 likes · 9 min read
Deploying LLMs with LangServe: A Complete Guide from Setup to Client Calls
Test Development Learning Exchange
Test Development Learning Exchange
Oct 14, 2024 · Fundamentals

Understanding async and await in Python with Practical Examples

This article introduces Python's async and await keywords, explains how they enable coroutine programming, and provides multiple practical examples including simple coroutine definitions, awaiting tasks, concurrent execution with asyncio.gather, HTTP requests using aiohttp, and resource management with custom coroutine-based managers.

AsyncPythonasyncio
0 likes · 6 min read
Understanding async and await in Python with Practical Examples
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 14, 2024 · Fundamentals

Understanding Exception Handling in Python

This article provides a comprehensive guide to Python exception handling, covering the concept of exceptions, built‑in exception types, the try‑except‑else‑finally structure, custom exception creation, debugging techniques with assert and logging, and a practical file‑operation example to build robust programs.

Error HandlingException HandlingPython
0 likes · 8 min read
Understanding Exception Handling in Python
Test Development Learning Exchange
Test Development Learning Exchange
Oct 12, 2024 · Fundamentals

Python Programming Fundamentals: A Comprehensive Beginner's Guide

This tutorial introduces Python basics, covering installation, syntax, data types, control structures, functions, modules, file operations, exception handling, object-oriented programming, and a simple calculator project, providing clear explanations, practical code examples, and step-by-step guidance for beginners to start coding in Python.

PythonTutorialfundamentals
0 likes · 12 min read
Python Programming Fundamentals: A Comprehensive Beginner's Guide
Java Tech Enthusiast
Java Tech Enthusiast
Oct 12, 2024 · Fundamentals

Simplifying Driver Assignment Logic: Guard Clauses, Decision Tables, and Function Composition

The article shows how to replace the taxi‑hailing app’s deeply nested driver‑assignment if‑statements with early‑exit guard clauses, data‑driven decision tables, and composable functions, thereby flattening the logic, enhancing readability, simplifying testing, and making future extensions easier to implement.

JavaScriptPythondecision tables
0 likes · 6 min read
Simplifying Driver Assignment Logic: Guard Clauses, Decision Tables, and Function Composition
Test Development Learning Exchange
Test Development Learning Exchange
Oct 12, 2024 · Fundamentals

Comprehensive Guide to Common pytest Assertion Techniques

This article introduces the core assertion methods in pytest, covering basic assertions, multiple assertions, exception handling, specific exception messages, list and dictionary checks, floating‑point approximations, string and tuple validation, subset verification, and log capture, each illustrated with clear Python code examples.

Pythonassertionspytest
0 likes · 8 min read
Comprehensive Guide to Common pytest Assertion Techniques
Test Development Learning Exchange
Test Development Learning Exchange
Oct 11, 2024 · Backend Development

Comprehensive Python Scripts for Property Management System Functions

This article provides a collection of Python scripts that cover essential property management system features such as resident data handling, automated payment reminders, monthly report generation, emergency notifications, maintenance request processing, visitor logging, facility booking, vehicle entry/exit tracking, announcement publishing, and database backup.

Property ManagementPythonbackend-development
0 likes · 12 min read
Comprehensive Python Scripts for Property Management System Functions