diff --git a/chess_floor_ethan.py b/chess_floor_ethan.py new file mode 100644 index 0000000000000000000000000000000000000000..bda879486399fcdd05232aacc0e996fe6fce75bf --- /dev/null +++ b/chess_floor_ethan.py @@ -0,0 +1,27 @@ +import turtle as t +t.setup(500, 500) +t.speed('fastest') +def block(size, filled): + if filled == True: + t.begin_fill() + for c in range(4): + t.forward(size) + t.right(90) + if filled == True: + t.end_fill() + +size = 10 +num = 2 +filled = True +for c in range(1, num*num+1): + block(size, filled) + if c%num == 0: + t.sety(t.ycor()-size) + t.setx(0) + else: + t.forward(size) + if filled == True: + filled = False + else: + filled = True +t.done() \ No newline at end of file diff --git a/decode_ethan.py b/decode_ethan.py new file mode 100644 index 0000000000000000000000000000000000000000..0b8e7bd2dcfcc357823a347b9008953a57fecbe6 --- /dev/null +++ b/decode_ethan.py @@ -0,0 +1,3 @@ +n = [0b1000101, 0b1000100, 0b1001111, 0b1010100, 0b1001101] +for c in range(len(n)): + print(chr(n[c]), end='') \ No newline at end of file diff --git a/emoji_ethan.py b/emoji_ethan.py new file mode 100644 index 0000000000000000000000000000000000000000..0e956c474359bcd6fb380e14b2b1f3c579864f2f --- /dev/null +++ b/emoji_ethan.py @@ -0,0 +1,3 @@ +for c in range(0x2000, 0x33ff): + print(chr(c), end='') +#♔♕♖♗♘♙♚♛♜♝♞♟♠♡♢♣♤♥♦♧ \ No newline at end of file diff --git a/ex13_1.txt b/ex13_1.txt deleted file mode 100644 index d37e06eaa69eecda2b36cb1195c48fae2bcdb2c0..0000000000000000000000000000000000000000 --- a/ex13_1.txt +++ /dev/null @@ -1,20 +0,0 @@ -知识点: 填充色、多重循环 - -Ex13.1 四方格 -============= - -同学们都能轻轻松松画出一个正方形,甚至给它填充颜色,所以这道习题我们增加一点难度。 - -** 任务描述 ** - -1. 用海龟作图绘制一个2*2的四方格 -2. 把左上角和右下角的两个格子涂成黑色 -3. 保留右上角和左下角两个格子的白色 - -** 提交方式 ** - -1. 将程序文件名保存为square_.py,其中是你的名字。例如square_cindy.py -2. 将程序提交(commit)到本地仓库 -3. 将这个提交推送(push)到你的码云仓库 -4. 创建一个Pull Request(PR)到 Moleqode/pratice 项目的exercise分支 - diff --git a/names.txt b/names.txt deleted file mode 100644 index 851fa897d771726447d0c1130a6e7fb040f85b62..0000000000000000000000000000000000000000 --- a/names.txt +++ /dev/null @@ -1 +0,0 @@ -# add your name as a separate line at the end of the file \ No newline at end of file