Tag

@Import

1 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Mar 24, 2025 · Fundamentals

Understanding Python Modules and Packages

This article explains Python modules and packages, covering their definitions, how to import them, use aliases, explore the module search path, and provides practical tips for packages, relative imports, and common debugging techniques to improve code organization and maintainability.

@ImportModulesPython
0 likes · 5 min read
Understanding Python Modules and Packages
Python Programming Learning Circle
Python Programming Learning Circle
Mar 11, 2025 · Fundamentals

Resolving Circular Imports in Python by Refactoring Import Statements

This article explains the problem of circular imports in Python, demonstrates the resulting ImportError with example modules, and shows how to resolve it by changing import statements to module-level imports, allowing the code to run correctly and print 'Hello, world!'.

@Importcircular-importcode refactoring
0 likes · 5 min read
Resolving Circular Imports in Python by Refactoring Import Statements
Test Development Learning Exchange
Test Development Learning Exchange
Mar 4, 2025 · Fundamentals

Understanding Python Modularization and Import Mechanisms

This article explains the fundamentals of Python modularization, covering basic concepts, various import styles, practical use‑case examples, and best‑practice guidelines such as avoiding circular dependencies and using clear package structures to improve code maintainability and scalability.

@ImportModularizationPython
0 likes · 7 min read
Understanding Python Modularization and Import Mechanisms
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 27, 2025 · Backend Development

Understanding and Using Spring's @Import Annotation

This article explains the purpose, usage patterns, and internal mechanics of Spring's @Import annotation, including importing regular classes, ImportSelector implementations, and ImportBeanDefinitionRegistrar implementations, with complete code examples and a discussion of how Spring processes these imports at runtime.

@ImportDependencyInjectionJava
0 likes · 9 min read
Understanding and Using Spring's @Import Annotation
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 9, 2025 · Frontend Development

Managing and Optimizing Import Statements in Frontend Projects

This article explains why import statements can fill an entire file, examines the problems caused by excessive imports, and presents practical techniques such as module re‑export, require.context, dynamic import, webpack ProvidePlugin, Vite plugins, TypeScript namespaces, aliasing, and Babel plugins to keep import sections concise and maintainable.

@ImportWebpackcode organization
0 likes · 11 min read
Managing and Optimizing Import Statements in Frontend Projects
Architecture Digest
Architecture Digest
Jan 25, 2025 · Backend Development

Using @Import for Modular Spring Boot Development and Dynamic Bean Registration

This article explains how to use Spring Boot's @Import annotation to modularize applications, add scanning entry points, and dynamically register beans via ImportSelector and ImportBeanDefinitionRegistrar, including code examples and configuration tips for Maven multi‑module projects.

@ImportComponentScanJava
0 likes · 18 min read
Using @Import for Modular Spring Boot Development and Dynamic Bean Registration
Java Architect Essentials
Java Architect Essentials
Jan 6, 2025 · Backend Development

Using @Import for Modular Spring Boot Applications

This article explains how to modularize a Spring Boot monolith by splitting it into Maven modules, leveraging @ComponentScan, @Import, custom annotations, ImportSelector, ImportBeanDefinitionRegistrar, and conditional loading to dynamically include or exclude functionality at runtime.

@ImportComponentScanMaven
0 likes · 18 min read
Using @Import for Modular Spring Boot Applications
Test Development Learning Exchange
Test Development Learning Exchange
Oct 8, 2024 · Fundamentals

Understanding the Purpose of if __name__ == '__main__' in Python

This article explains how the if __name__ == '__main__' construct distinguishes between running a Python file as a script versus importing it as a module, prevents unintended execution, and provides practical examples for testing, main logic, and avoiding side effects.

@ImportModulePython
0 likes · 5 min read
Understanding the Purpose of if __name__ == '__main__' in Python
IT Services Circle
IT Services Circle
May 29, 2024 · Fundamentals

Understanding the __name__ Variable in Python Scripts

This article explains how the __name__ variable is set when running Python scripts directly or importing them, demonstrates its behavior with multiple .py files, shows how unintended code can be executed, and introduces the if __name__ == '__main__' guard to control execution.

@ImportPython__name__
0 likes · 6 min read
Understanding the __name__ Variable in Python Scripts
Laravel Tech Community
Laravel Tech Community
Apr 27, 2023 · Backend Development

Easy Excel: A PHP Library for Efficient Low‑Memory Excel Read/Write

Easy Excel is a PHP library built on openspout that enables fast, low‑memory reading and writing of xlsx, csv, and ods files, providing installation steps, environment requirements, and code examples for exporting, importing, and handling Excel data in backend applications.

@ImportExcelExport
0 likes · 4 min read
Easy Excel: A PHP Library for Efficient Low‑Memory Excel Read/Write
Python Programming Learning Circle
Python Programming Learning Circle
Jun 22, 2022 · Backend Development

alanpoi: A Java Library for Efficient Excel Import and Export

The article introduces alanpoi, a Java library that streamlines Excel import and export with millisecond‑level parsing, multi‑sheet support, error feedback, and extensible consumption interfaces, providing configuration, inheritance, and invocation examples along with annotation‑driven export capabilities.

@ImportExcelExport
0 likes · 6 min read
alanpoi: A Java Library for Efficient Excel Import and Export
Python Programming Learning Circle
Python Programming Learning Circle
Jan 21, 2022 · Fundamentals

Difference Between python3 script.py and python3 -m module: Impact on sys.path

This article explains how running a Python file directly with python3 script.py differs from using python3 -m module, focusing on the resulting changes to sys.path, import behavior, and the search order of modules.

@ImportPythoncommand line
0 likes · 4 min read
Difference Between python3 script.py and python3 -m module: Impact on sys.path
Python Programming Learning Circle
Python Programming Learning Circle
Sep 8, 2021 · Fundamentals

How to Avoid Circular Imports in Python Code

This article explains why circular imports occur in Python, demonstrates the resulting ImportError with example modules, and provides three practical solutions—including importing modules directly, using lazy imports, and redesigning code structure—to prevent such issues.

@Importbackendcircular-import
0 likes · 4 min read
How to Avoid Circular Imports in Python Code
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 30, 2021 · Backend Development

How to Build Custom @Enable Annotations in Spring Boot

This guide explains the purpose of Spring Boot's @Enable* annotations, how they rely on @Import, and walks through creating a custom @EnablePack annotation with accompanying configuration and usage in a Spring Boot application.

@Enable@ImportCustom Annotation
0 likes · 4 min read
How to Build Custom @Enable Annotations in Spring Boot
Laravel Tech Community
Laravel Tech Community
Jul 29, 2021 · Databases

Common MySQL Commands and Operations Guide

This article provides a comprehensive collection of MySQL command-line instructions for exporting databases or tables, importing data, managing databases and tables, performing DDL and DML operations, handling field types, and configuring user privileges, all illustrated with practical code examples.

@ImportDDLDML
0 likes · 10 min read
Common MySQL Commands and Operations Guide
Python Programming Learning Circle
Python Programming Learning Circle
Jun 28, 2021 · Fundamentals

Understanding Python's __name__ Variable: Purpose, Values, and Practical Examples

This article explains the built‑in __name__ variable in Python, how its value differs when a script is run directly versus imported as a module, and demonstrates both scenarios with clear code examples and visual diagrams.

@ImportModulePython
0 likes · 5 min read
Understanding Python's __name__ Variable: Purpose, Values, and Practical Examples
Python Programming Learning Circle
Python Programming Learning Circle
May 28, 2021 · Fundamentals

Common Python Pitfalls and How to Avoid Them

This article enumerates frequent Python pitfalls—including UnboundLocalError, mutable default arguments, subtle differences between x+=y and x=x+y, tuple syntax, shared mutable containers, list mutation during iteration, closure late binding, misuse of del, import inconsistencies, version‑specific changes, and the GIL—providing explanations and correct practices to help developers write safer code.

@ImportClosuresCommon Pitfalls
0 likes · 13 min read
Common Python Pitfalls and How to Avoid Them
Python Programming Learning Circle
Python Programming Learning Circle
Mar 16, 2021 · Fundamentals

Understanding Python import Statements: Importing Modules and Specific Members

This article explains the two primary Python import syntaxes—importing an entire module versus importing selected members—detailing their differences, usage of aliases, multiple module imports, and includes runnable code examples that illustrate how each form affects name resolution.

@ImportModuleSyntax
0 likes · 3 min read
Understanding Python import Statements: Importing Modules and Specific Members