
Python
Python知识点
MC6058
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python注释--Python
#print('注释') import turtle turtle.forward(100) ''' yes shi''' """yse shi de"""原创 2021-01-31 02:22:15 · 85 阅读 · 0 评论 -
查找Python安装路径--Python
原创 2021-01-31 00:42:40 · 83 阅读 · 0 评论 -
美国盾牌--Python
import turtle turtle.pensize(10) turtle.pencolor('red') turtle.circle(105) turtle.left(90) turtle.penup() turtle.forward(50) turtle.pendown() turtle.right(90) turtle.fillcolor('blue') turtle.begin_fill() turtle.circle(55) turtle.end_fill() turtle.pensiz原创 2021-01-27 21:20:30 · 140 阅读 · 0 评论 -
查找--Python
昵称=input('请输入要查询的粉丝昵称:') 大数组=[['a',50],['b',80],['c',100]] for 小数组 in 大数组: if 小数组[0] == 昵称: print(昵称,"好感度是",小数组[1]); break name = input('请输入要查找的名字') students = [['chen',100],['wang',99],['hu',98],['yang',97]] for i in students: if原创 2021-01-27 20:34:39 · 136 阅读 · 0 评论 -
Python if 循环 for --Python
fs=[12,34,55,66,77] for i in range(len(fs)): fs[i]+=1 print(fs[i]) if 1<2: print('yes') print('1<2') else : print('no') print('1>2')原创 2021-01-27 20:17:02 · 112 阅读 · 0 评论 -
五边形---Python
import turtle turtle.pensize(5) color = ['orange','blue','yellow','black','green','red','tomato'] for i in range(600): turtle.pencolor(color[i%6]) turtle.fd(i*1.15) turtle.left(62)原创 2021-01-18 11:28:16 · 362 阅读 · 0 评论