python 主 程式 副 程式[程式(專案)架構/結構]
python 主 程式 副 程式[程式(專案)架構/結構]
資料來源: https://chatgpt.com/share/69ead0a7-58c8-8323-82dd-03290fa1f9cd
math_utils.py(副程式)
def add(a, b):
return a + b
main.py(主程式)
import math_utils
def main():
result = math_utils.add(5, 3)
print(result)
if __name__ == "__main__":
main()