@oliver1995
2016-09-25T23:01:05.000000Z
字数 553
阅读 664
背景介绍:复习这两次课程的内容,并且自己学How to think like a computer scientist,并且按书中要求安装了一个swampy.turtulworld的模块。学习了一些语句像while,for,if的用法,也练习了一下matplotlib并完成第三周的作业L1,
正文:
作业L1:在屏幕上让你的英文名字水平移动起来
import os
import time
A = " ### # ### # # ##### ##### "
B = "# # # # # # # # # "
C = "# # # # # # ##### #### "
D = "# # # # # # # # # "
E = " ### ##### ### # ##### # # "
space=" "
while len(A)<70:
i=os.system('cls')
print A
print B
print C
print D
print E
A = space + A
B = space + B
C = space + C
D = space + D
E = space + E
time.sleep(0.2)
作业L2:在80*80点阵上用字符拼出你想画的东西,并让它旋转起来,希望脑洞大开!