Skip to main content
Stack Overflow
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Python - Include another Python script

I have a question. When you are programming in PHP you can use this to include external php script to current script.

include('test_page.php');

So you don't have to repeat a code in every script. Is there a way in Python to include another Python script, just like the php page?

Answer*

Draft saved
Draft discarded
Cancel
1
  • 1
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center. Commented Apr 19, 2022 at 22:42

default

AltStyle によって変換されたページ (->オリジナル) /