函数总结练习
摘要:1 #定义函数 2 def 求平方(a,b): 3 '''求a,b的平方数''' 4 a = a**2 5 b = b**2 6 c = a + b 7 return c #执行函数返回c 8 print(求平方(3,5)) #打印34 9 10 #调用函数 11 #例子1: 12 x = 求平方(5,8) 1...
阅读全文
posted @ 2017-04-24 16:47
posted @ 2017-04-24 16:47
posted @ 2017-04-23 10:50
posted @ 2017-04-20 18:55
posted @ 2017-04-18 18:02
posted @ 2017-04-09 17:59