2020年6月27日

python-函数(补充)

摘要: def calc(n): print(n) if int(n / 2) == 0: # 10/2 5/2 2/2 return n res=calc(int(n / 2)) return res calc(10) ####打印结果 10 5 2 1 ######################### 阅读全文

posted @ 2020-06-27 23:26 Yangyl_00 阅读(173) 评论(0) 推荐(0) 编辑

导航