摘要: 1、脚本 def add(a,b): return (a+b)def div(a,b,c): return (a/b-c)x = div(34,100,1023)y = add(24,x)print ("the result is %f" %y) print ("the result is %d" 阅读全文
posted @ 2018-02-24 15:52 Tang豆豆 阅读(142) 评论(0) 推荐(0)
摘要: 1、脚本 def max(a,b,c): x = a if (a<b): x=b if (b<c): x=c print ("the max num is %d" %x) def hello(list): list.append([1,2,3,4]) print(list) return list 阅读全文
posted @ 2018-02-24 11:20 Tang豆豆 阅读(288) 评论(0) 推荐(0)