python导入自定义模块

来源:互联网 发布:盐城金石计价软件 编辑:程序博客网 时间:2024/05/18 21:08


test1.py

import test2if __name__ == "__main__":  print len(test2.fun())  bb = set("k")  bb = bb | test2.fun()  print bb

test2.py

def fun():  cc = set("sdsd")  cc.add('a')  return cc

待续。。

0 0
原创粉丝点击