python模块式管理

#!/usr/bin/python
# -*- coding: UTF-8 -*-
 
# 导入自定义support模块
import support
 
# 现在可以调用模块里包含的函数了
support.print_func("Runoob")

  自定义模块

support
def print_func( par ):
   print ("Hello : ", par)
   return

 

posted @ 2024-03-27 16:56  飞雪飘鸿  阅读(2)  评论(0编辑  收藏  举报
https://damo.alibaba.com/ https://tianchi.aliyun.com/course?spm=5176.21206777.J_3941670930.5.87dc17c9BZNvLL