python
傻红就是不爱跑步
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python的一些简单示例
1、球场领先多少分在多久的剩余时间里是安全的?points = int(input("please input the leading points\n")) has_ball = input("the leading team has ball (yes/no)\n") second = int(input("please input the remaining seconds\n"))point原创 2016-03-22 16:21:33 · 502 阅读 · 0 评论 -
Python的一些简单示例(2)
1、判断是否为素数import mathx = 7for i in range(2,(int)(math.sqrt(x))+1): if(x%i == 0): print("x is not a sushu") break else: print("x is a sushu")//当for非正常结束则不执行else,如果for正常结束则执行else2、原创 2016-03-22 16:33:44 · 478 阅读 · 0 评论
分享