![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
mimimaocat
这个作者很懒,什么都没留下…
展开
-
获取用户输入的数字,进行判断并输出相应的语句
#!/usr/bin/env python # -*- coding: utf-8 -*- # 20170222if.py """ 调用时间函数 """ import time def sleep(mytime=''): time.sleep(mytime) print 'please input your age:___' """ 获取年龄 in原创 2017-02-23 15:38:21 · 1207 阅读 · 0 评论 -
20170316
#! /user/bin/env python # -*- coding:utf-8 -*- #求和 def s(a,b): i = 0 if a > 0 and b >0: while (a i = i + a a = a + 1 return i #print s(1,100) # 阶乘 def n(a): i = 1 while原创 2017-03-16 12:22:46 · 159 阅读 · 0 评论