GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python/methodtest.py at master · Xu-Guo/python Expand file tree/ Copy pathmethodtest.pyMore file actions 22 lines (17 loc) · 301 Bytes / Copy pathmethodtest.pyFile metadata and controls22 lines (17 loc) · 301 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 #!/usr/bin/env python # -*- coding: utf-8 -*- # 定义一个递归函数 def f(n): if 1==n: return 1 else: return f(n-1)*n # 求一个斐波拉契数列吧 def fib(n): if 1==n or 0==n: return 1 else: return fib(n-1)+fib(n-2) print "fib:", fib(5) print f(3) print "my python is lucky" |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |