
Lv.1
QQ:2211579399
在 求老师!!!!!!!! 中回复
万载之极:我们这里的科学课这么卷吗,六年级就开始学光,机械,遗传与进化了。(还要考试)
啊这……我是说物理啊,不是科学
2023-01-13T21:23:59 点赞:0
在 求老师!!!!!!!! 中回复

这是数轴,数轴三要素:原点(0刻度),正方向(箭头,必须指向右边),单位长度(0到1的距离是1个单位长度,1到2的距离也是个单位长度,0到100有100个单位长度)
所有不符合数轴三要素的一律算作不是数轴
2023-01-14T13:37:25 点赞:0
在 【Python作品分享】国际象棋【作品秀】 中回复
以后遇到代码 forword(), right(), left() 时一定注意可以写成 fd(), rt(), lt() 以后遇到大程序可以省去很多字节
import turtle as t
t.colormode(255)
t.penup()
t.speed(0)
colors = [(255, 206, 158), (209, 139, 71), (255, 206, 158)]
for u in range(8):
for l in range(8):
t.fillcolor(colors[u % 2 + l % 2])
t.begin_fill()
for o in range(5):
t.fd(50)
t.lt(90)
t.end_fill()
t.rt(90)
t.goto(0, -50 * (u + 1))
t.goto(0, 0)
black = '♜♞♝♛♚♟'
white = '♖♘♗♕♔♙'
for q in black[0:5]:
t.write(q, font=('arial', 40))
t.fd(50)
w = [2, 1, 0]
for i in w:
t.write(black[i], font=('arial', 40))
t.fd(50)
t.goto(0, -50)
for e in range(8):
t.write(black[-1], font=('arial', 40))
t.fd(50)
t.goto(0, -300)
for e in range(8):
t.write(white[-1], font=('arial', 40))
t.fd(50)
t.goto(0, -350)
for q in white[0:5]:
t.write(q, font=('arial', 40))
t.fd(50)
w = [2, 1, 0]
for i in w:
t.write(white[i], font=('arial', 40))
t.fd(50)
t.done()2023-02-01T10:38:06 点赞:0