浙教版信息技术八上PYTHON第12课

Contributor:typeracer_hzy Type:代码 Date time:2020-11-30 19:09:59 Favorite:12 Score:-1
返回上页 Report
请选择举报理由:




Collection Modify the typo
#定义printinfo函数
def printinfo(name,age):
print("Name:",name)
print("Age:",age)
#调用printinfo函数
printinfo("miki",50)
printinfo(age=50,name="miki")
#定义fib函数,n为形参
def fib(n):
a,b=1,1
for i in range(3,n+1):
a,b=b,a+b
return b
#输入月数
n=int(input('请输入第n个月:'))
#调用fib函数,i值为实参
for i in range(1,n+1):
print(fib(i),end='')
声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。
Hot degree:
Difficulty:
quality:
Description: the system according to the heat, the difficulty, the quality of automatic certification, the certification of the article will be involved in typing!

This paper typing ranking TOP20

登录后可见