IndentationError expected an indented block after function definition on line 1 def fibn ab = 01 while an printaend= ab = ba+b print fib1000 File stdin line 7 fib1000 ^
以下为已修复的代码:
def fib(n): a,b = 0,1 while a<n: print(a,end=' ') a,b = b,a+b print() fib(1000)
原文地址: https://www.cveoy.top/t/topic/eeRL 著作权归作者所有。请勿转载和采集!