会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Longjun1225
博客园
首页
新随笔
联系
订阅
管理
2022年12月8日
7段数码管绘制
摘要: import turtle, datetime def drawGap(): turtle.penup() turtle.fd(5) def drawLine(draw): drawGap() turtle.pendown() if draw else turtle.penup() turtle.f
阅读全文
posted @ 2022-12-08 19:43 LLLONG
阅读(23)
评论(0)
推荐(0)
2022年12月1日
跳动的小球
摘要:
阅读全文
posted @ 2022-12-01 21:34 LLLONG
阅读(44)
评论(0)
推荐(0)
2022年9月29日
Python3
摘要: 实例一: import datetime#定义一个列表mot = ["今天星期一:\n坚持下去不是因为我很坚强,而是因为我别无选择。", "今天星期二:\n含泪播种的人一定能笑着收获。", "今天星期三: \n做对的事情比把事情做对更加重要。", "今天星期四: \n命运给予我们的不是失望之酒,而是
阅读全文
posted @ 2022-09-29 14:03 LLLONG
阅读(135)
评论(0)
推荐(0)
2022年9月22日
倒三角
摘要: for i in range(1,10): for j in range(i,10): print(str(j) + "x" + str(i) + "=" + str(i * j) + "\t",end =' ') print()
阅读全文
posted @ 2022-09-22 16:18 LLLONG
阅读(160)
评论(0)
推荐(0)
Python 2
摘要: 实例一: print("今有物不知其数,三三数之剩二,五五数之剩三,七七数之剩二,问几何?\n")#输入一个数number = int(input("请输入您认为符合条件的数:"))#判断是否符合条件if number%3 == 2 and number%5 == 3 and number%7 ==
阅读全文
posted @ 2022-09-22 14:36 LLLONG
阅读(92)
评论(0)
推荐(0)
2022年9月15日
Python第一次作业
摘要: 实例一: height=1.84print("您的身高:"+str(height))weight=35.0print("您的体重:"+str(weight))bmi=weight/(height*height)print("您的BMI指数为:"+str(bmi))#判断身材是否合理if bmi<18
阅读全文
posted @ 2022-09-15 13:17 LLLONG
阅读(40)
评论(0)
推荐(0)
公告