摘要: 1 a = 1 2 def func(): 3 b = a+5 4 #print(b) 5 def func2(): 6 c = a +b 7 print(c) 8 def func3(): 9 d = a*b+c 10 func3() 11 func2() 12 return b 13 14 fu 阅读全文
posted @ 2020-07-21 22:23 万能土豆 阅读(224) 评论(0) 推荐(0)
摘要: python 菜鸟问题·1(我学到后面会有更多问题) 1 a = 1 2 def func(): 3 b = a+5 4 return b 5 func() 6 print(b) 报错????? 我又改了 a = 1 def func(): b = a+5 return b r = func() p 阅读全文
posted @ 2020-07-21 20:11 万能土豆 阅读(144) 评论(0) 推荐(0)