约 5,270 个结果
在新选项卡中打开链接
  1. Create and Import modules in Python - GeeksforGeeks

    2019年12月29日 · In Python, a module is a self-contained Python file that contains Python statements and definitions, like a file named GFG.py, can be considered as a module named GFG which can be …

  2. 6. ModulesPython 3.14.5 documentation

    2 天之前 · 6. Modules ¶ If you quit from the Python interpreter and enter it again, the definitions you have made (functions and variables) are lost. Therefore, if you want to write a somewhat longer …

  3. Python Modules - W3Schools

    Create a Module To create a module just save the code you want in a file with the file extension .py:

  4. Creating Python Modules and Packages Guide - PyTutorial

    2025年5月10日 · Python modules and packages help organize code. They make it reusable. This guide shows how to create them properly.

  5. How to write a Python module/package? - Stack Overflow

    2013年4月1日 · Make a python module install-able with "pip install ..." Here is an absolute minimal example, showing the basic steps of preparing and uploading your package to PyPI using setuptools …

  6. Creating Python Libraries & Reusable Modules - DEV Community

    2025年10月8日 · Creating Python libraries and reusable modules is a fundamental skill for any Python developer. By following the principles outlined in this article, you can build well-organized, …

  7. Creating Modules in Python: A Comprehensive Guide

    2025年4月10日 · Python's modular programming approach allows developers to break down large programs into smaller, more manageable pieces. Modules are an essential part of this paradigm, …

  8. Python Modules (With Examples) - Programiz

    In this tutorial, you will learn to create and import custom modules in Python. Also, you will find different techniques to import and use custom and built-in modules in Python.

  9. How to Create a Custom Python Module (Step-by-Step Guide)

    2025年10月3日 · Learn how to write your own Python modules and packages to organize, reuse, and share your code for cleaner projects.

  10. Python Modules: Bundle Code And Import It From Other Files

    2025年9月5日 · Python modules allow you to organize and reuse code. Learn how to create modules, and how to use modules with the Python import statement.