码迷,mamicode.com
首页 >  
搜索关键字:综合练习    ( 214个结果
组合数据类型综合练习
字符串联系: 列表: 元组: 字典: 集合: 元组是圆括号括起来的,一旦定义就不可以进行更改,但是如果元组里面含有列表,那列表里面就可以进行更改。字符串、集合和列表都可以进行更改,添加删除。字典和元组都是没有序列的,不可以通过下标进行查找,字典是通过键来进行查找。 ...
分类:其他好文   时间:2018-03-22 13:34:05    阅读次数:139
组合数据类型练习,综合练习
1.组合数据类型练习: 分别定义字符串,列表,元组,字典,集合,并进行遍历。 总结列表,元组,字典,集合的联系与区别。 字典:存储数据的一种容器,字典中存储的数据都是无序的,可以取数据的时候不能根据索引取,可以根据key(键)取出对应的value(值) 键必须是唯一的,不可变的 元组:可以存储数据, ...
分类:其他好文   时间:2018-03-22 12:39:12    阅读次数:133
Python基础综合练习
1.综合练习:画一面五星红旗,将代码与运行截图发布博客交作业。 代码如下: 截图: 2.字符串练习: http://news.gzcc.cn/html/2017/xiaoyuanxinwen_1027/8443.html 取得校园新闻的编号,代码及截图如下: 2.1: 2.2 https://doc ...
分类:编程语言   时间:2018-03-21 00:07:48    阅读次数:354
Python基础综合练习
import turtle def mygoto(x, y): turtle.up() turtle.goto(x,y) turtle.down() def drawBigStar(x): turtle.begin_fill() for i in range(5): turtle.forward(x... ...
分类:编程语言   时间:2018-03-20 18:11:06    阅读次数:189
Python基础综合练习
运行结果图: ...
分类:编程语言   时间:2018-03-20 16:26:13    阅读次数:232
Python基础综合练习
import turtle def mygoto(x, y): turtle.up() turtle.goto(x, y) turtle.down() def drawstar(x): turtle.begin_fill() for i in range(5): turtle.forward(x) ... ...
分类:编程语言   时间:2018-03-20 15:53:03    阅读次数:179
Python基础综合练习
import turtle turtle.setup(600, 400, 0, 00) turtle.color('yellow') turtle.bgcolor('red') turtle.fillcolor('yellow') turtle.speed(6) def mygoto(x, y): ... ...
分类:编程语言   时间:2018-03-19 13:40:34    阅读次数:225
Python基础综合练习
import turtle def drawFivePointedStar(x,y,width,degree): turtle.up() turtle.goto(x,y) turtle.down() turtle.begin_fill() turtle.setheading(degree) for ... ...
分类:编程语言   时间:2018-03-19 13:39:25    阅读次数:188
Python基础综合练习
1 import turtle 2 from turtle import * 3 4 5 def mygoto1(x, y): 6 turtle.up() 7 turtle.goto(x, y) 8 turtle.down() 9 10 11 def star(r): 12 turtle.begin ...
分类:编程语言   时间:2018-03-19 13:36:24    阅读次数:190
Python基础综合练习
from turtle import * def goto1(x, y): up() goto(x, y) down() def draw(r): begin_fill() for i in range(5): forward(r) right(144) end_fill() setup(700, ...
分类:编程语言   时间:2018-03-19 13:27:34    阅读次数:201
214条   上一页 1 ... 10 11 12 13 14 ... 22 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!