会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
甲壳虫C
博客园
首页
新随笔
联系
订阅
管理
2021年9月27日
四则运算
摘要: package MyProject; import javax.swing.; //100以内的加法测试-用一个监视器 import java.awt.; import java.awt.event.*; public class Demo1 { public static void main(St
阅读全文
posted @ 2021-09-27 00:15 甲壳虫C
阅读(22)
评论(0)
推荐(0)
2020年5月6日
预测球队比赛成绩
摘要: from random import random def printIntro(): print("这个程序模拟两个选手A和B的某种竞技比赛") print("程序运行需要A和B的能力值(以0到1之间的小数表示)") def getInputs(): a = eval(input("请输入选手A的
阅读全文
posted @ 2020-05-06 15:47 甲壳虫C
阅读(79)
评论(0)
推荐(0)
2020年3月11日
叠加等边三角形
摘要: import turtle as tt.setup(600, 600, None,None)t.pu()t.fd(-120)t.pensize(5)t.width(5)t.pencolor("darkgreen")t.pd()t.fd(250)t.seth(120)t.pencolor("black
阅读全文
posted @ 2020-03-11 20:32 甲壳虫C
阅读(97)
评论(0)
推荐(0)
六角形绘制
摘要: import turtle turtle.left(30)turtle.forward(144) turtle.right(60)turtle.forward(144) turtle.right(60)turtle.forward(144) turtle.right(60)turtle.forwar
阅读全文
posted @ 2020-03-11 20:28 甲壳虫C
阅读(82)
评论(0)
推荐(0)
五角星绘制
摘要: 1 import turtle 2 3 turtle.color('red') 4 turtle.pensize(10) 5 turtle.begin_fill() 6 for i in range(5): 7 turtle.fd(100) 8 turtle.rt(144) 9 10 turtle.
阅读全文
posted @ 2020-03-11 15:50 甲壳虫C
阅读(78)
评论(0)
推荐(0)
公告