文章分类 -  Python学习

python 学习笔记及练习记录
摘要:1 def power(x, n): # 首先创建一个函数,包含两个位置参数 2 s = 1 # 定义一个变量 3 while n > 0: # 4 s = s * x 5 n = n - 1 6 return s 7 8 get = power(3, 5) 9 print(get) def power(x,n... 阅读全文
posted @ 2019-05-01 21:29 我要变大神 阅读(1562) 评论(1) 推荐(0)