import turtle turtle.setup(600,400,0,0) turtle.bgcolor('red') turtle.pencolor('yellow') turtle.fillcolor('yellow') turtle.begin_fill() turtle.penup() ... ...
分类:
其他好文 时间:
2018-05-09 22:45:21
阅读次数:
183
import turtle turtle.pencolor('red') turtle.fillcolor('yellow') turtle.begin_fill() while True: turtle.forward(100) turtle.right(25) if(abs(turtle.pos... ...
分类:
其他好文 时间:
2018-05-09 22:42:30
阅读次数:
169
import turtle turtle.pencolor('yellow') turtle.fillcolor('green') turtle.begin_fill() while True: turtle.forward(100) turtle.right(155) if (abs(turtle... ...
分类:
其他好文 时间:
2018-05-09 22:41:03
阅读次数:
123
import turtle # 设置初始位置 turtle.penup() turtle.left(90) turtle.fd(200) turtle.pendown() turtle.right(90) # 花蕊 turtle.fillcolor("red") turtle.begin_fill(... ...
分类:
其他好文 时间:
2018-05-09 22:36:43
阅读次数:
156
import turtle #画一个五角星 turtle.bgcolor('red') turtle.pencolor('yellow') turtle.fillcolor('yellow') turtle.begin_fill() for i in range(5): turtle.forward ...
分类:
其他好文 时间:
2018-05-09 21:33:09
阅读次数:
186
Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器。基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载、安装。 ...
分类:
系统相关 时间:
2018-05-08 22:26:28
阅读次数:
234
import turtle turtle.setup(600,400,0,0) turtle.bgcolor("red") turtle.color("yellow") turtle.fillcolor("yellow") turtle.begin_fill() for i in range(5): ...
分类:
其他好文 时间:
2018-05-07 17:48:08
阅读次数:
154
>>> import turtle >>> turtle.setup(600,400,0,0) >>> turtle.bgcolor("red") >>> turtle.color("yellow") >>> turtle.fillcolor("yellow") >>> turtle.begin_f... ...
分类:
其他好文 时间:
2018-05-07 17:44:10
阅读次数:
151
迭代变量 为什么foreach迭代变量不能修改值?我知道是在实现IEnumerator枚举器的时候Current属性设置为只读,但是问题是为什么将其设置为只读属性呢?而且在自定义实现该枚举器的时候,将其设置为读写的,还是会提示迭代变量不可更改,就是说foreach强行限制不允许迭代变量赋值,为什么要 ...
分类:
其他好文 时间:
2018-05-06 01:31:36
阅读次数:
144
1. node.js node.js是一个前端的框架 自带一个包管理工具npm node.js 的安装 官网:http://nodejs.cn/ 在命令行检验是否安装成功 切换到项目目录,初始化了一个package.json文件 安装与卸载jQuery包(例子) 安装 安装 卸载 卸载 安装淘宝镜像 ...
分类:
其他好文 时间:
2018-05-05 11:12:38
阅读次数:
176