#in file calc.py i wrote the following code def Div(a,b): return a/b#in another file i wrote following code to import module calc import calcc= calc.Div(4,2)print(c)
1 回答

躍然一笑
TA貢獻(xiàn)1826條經(jīng)驗(yàn) 獲得超6個贊
我以為 vscode 會自動保存文件,但后來我發(fā)現(xiàn)我們必須運(yùn)行該程序才能保存文件。我的代碼不起作用,因?yàn)槲以谶M(jìn)行更改后忘記保存 calc.py 。
添加回答
舉報(bào)
0/150
提交
取消