def Hello(): print("我是Hello函數") def Hi(): print("我是Hi函數") f = open('aa.txt', 'r') print(f.read()) # <-- Hi 或 Hello Hi() f.read()()
[此贴子已经被作者于2023-3-10 09:09编辑过]
def Hello(): print("我是Hello函數") def Hi(): print("我是Hi函數") f = open('aa.txt', 'r') aa = f.read() print(aa) eval(aa)()