会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
辉夜007
博客园
首页
新随笔
联系
订阅
管理
2020年4月14日
马哥博客练习第4周
摘要: 1、 def compare(x,y): if x > y: print(y,x) return(y,x) else: print(x,y) return(x,y) 2、 def compare1(x,y,*args): nums = [x,y,*args] length = len(nums) p
阅读全文
posted @ 2020-04-14 00:24 辉夜007
阅读(117)
评论(0)
推荐(0)
2020年4月1日
马哥博客作业第2周
摘要: ########求100以内素数 n = int(input('please input your number:'))count = 1print(count,2)for x in range(3,n,2): if x > 10 and x % 5 == 0 : continue for i in
阅读全文
posted @ 2020-04-01 20:49 辉夜007
阅读(99)
评论(0)
推荐(0)
2020年3月30日
马哥博客作业第一周
摘要: ##########练习1import mathr = float(input("请输入圆的半径:"))c = 2 * math.pi * rs = math.pi * r ** 2print("所求圆半径为:")print(r)print("所求圆周长为:")print(c)print("所求圆面
阅读全文
posted @ 2020-03-30 11:40 辉夜007
阅读(96)
评论(0)
推荐(0)
公告