摘要:
#!/usr/bin/env python#ecoding=utf-8 f=open(r"D:\opsdev\olduser\oldused.txt","a+") newline=raw_input('input a string:')f.writelines(newline+"\n") f.clo 阅读全文
posted @ 2018-03-05 17:01
jamezhan
阅读(35859)
评论(0)
推荐(0)
摘要:
#!/usr/bin/env python#ecoding=utf-8'''Created on 2017年11月2日题目:利用递归函数调用方式,将所输入的5个字符,以相反顺序打印出来。 @author: James zhan''' def output(s,l): if l==0: return 阅读全文
posted @ 2018-03-05 16:06
jamezhan
阅读(919)
评论(0)
推荐(0)
摘要:
#!/usr/bin/env python#ecoding=utf-8'''Created on 2017年11月2日 @author: James zhan''' def fun(n): if n==1 or n==0: return 1 else: return fun(n-1)*ns = in 阅读全文
posted @ 2018-03-05 15:49
jamezhan
阅读(4275)
评论(0)
推荐(0)

浙公网安备 33010602011771号