from 作业 import sum#调用作业文件中的函数sum
sum()
def sum():
with open('text.txt', 'r',encoding='utf-8') as f:
content =f.read()
print(content)
sum()
def num():
with open('text.txt','w',encoding='utf-8') as file:
stu = '夜空中'
file.write(stu)
num()
网友评论