时钟代码fromturtleimport*fromdatetimeimportdatetimedefjump(distanz,winkel=0):penup()right(winkel)forward(distanz)left(winkel)pendown()defhand(laenge,spitze):fd(laenge*1.15)rt(90)fd(spitze/2.0)lt(120)fd(sp
分类:
其他好文 时间:
2018-06-03 19:32:16
阅读次数:
146
描述 使用turtle库,绘制一个正方形。 注意:这不是自动评阅题目,仅用于练习,没有评阅。 输出示例 正方形效果如下: 代码: 分析: 1.import是加载库的一个命令,import XX as YY是说加载库XX,在下面引用为YY; 2.turtle.fd(distance)。里面的fd也就是 ...
分类:
其他好文 时间:
2018-06-02 18:33:25
阅读次数:
304
jsp的7个动作指令 jsp:forward:执行页面转向,将请求的处理转发到下一个页面 jsp:param:用于传递参数,必须与其他支持参数的标签一起使用 jsp:include:用于动态引入一个jsp页面 jsp:plugin:用于下载JavaBean的实例或Applet到客户端执行 jsp:u ...
分类:
Web程序 时间:
2018-06-02 17:43:00
阅读次数:
144
A frog is crossing a river. The river is divided into x units and at each unit there may or may not exist a stone. The frog can jump on a stone, but i ...
分类:
其他好文 时间:
2018-05-31 10:44:30
阅读次数:
264
classmates=['a','b','c','d'] print(classmates[-1]) print(len(classmates)) classmates.append('t') classmates.insert(1,'r') classmates.pop() print(class... ...
分类:
其他好文 时间:
2018-05-30 22:53:48
阅读次数:
295
fr = open('letter.txt',mode='r',encoding='utf-8') plaincode = fr.read() print('明文:' + plaincode) print('密文:',end='') for c in plaincode: print(chr(ord... ...
分类:
其他好文 时间:
2018-05-30 22:51:04
阅读次数:
178
fr=open('马骝.txt',mode='r',encoding='utf-8') plaincode=fr.read() fr.close() fw=open('大马骝.txt',mode='a',encoding='utf-8') for c in plaincode: fw.write(c... ...
分类:
其他好文 时间:
2018-05-30 22:46:34
阅读次数:
141
import turtle colors=['yellow','red','black','blue','purple','orange'] turtle.speed(10) for i in range(100): turtle.pencolor(colors[i%6]) turtle.forwa ...
分类:
其他好文 时间:
2018-05-30 22:40:49
阅读次数:
205
POX启动时使用命令:openflow.discovery openflow.spanning_tree --no-flood --hold-down来自:https://openflow.stanford.edu/display/ONL/POX+Wiki/ 原文: openflow.spannin ...
分类:
其他好文 时间:
2018-05-30 21:07:25
阅读次数:
233
反向迭代器 ? 反向迭代器就是在容器中从尾元素向首元素反向移动的迭代器。对于反向迭代器,递增(以及递减)操作的含义会颠倒过来。 ? 递增一个反向迭代器(++it)会移动到前一个元素;递减一迭代器(--it)会移动到下一个元素。 ? 除了forward_list之外,其他容器都支持反向迭代器。我们可以 ...
分类:
编程语言 时间:
2018-05-29 23:02:26
阅读次数:
209