- 博客(1)
- 收藏
- 关注
原创 Python调用模块何时用括号,何时不用括号
文件sample.py中class Printer(): def __init__(self): self.x = 19 def print1(self, x): x= 100 + x print("This is func1!" + str(x)) return x=====================文件func1文件中import sample as spdemo = sp.Printer() #实例化类demo.print1(23)...
2021-08-14 20:13:44
342
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅