标签:python
def
f1(a,b,stop):
if
a
=
=
stop:
print
(a)
return
True
elif
b
=
=
stop:
print
(a,b,sep
=
" "
,end
=
"\n"
)
return
True
elif
a > stop:
print
(
"无效的输入"
)
return
False
else
:
if
a
=
=
0
:
print
(a,b,sep
=
"\n"
)
c
=
a
+
b
print
(c)
if
c < stop:
f1(b,c,stop)
f1(
0
,
1
,
144
)
标签:python
原文地址:http://bainianminguo.blog.51cto.com/4572772/1945092