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