python
此后无良辰
路漫漫其修远兮~
展开
-
Python学习【HFUTsoftware】
集合 集合(set)是一个无序的不重复元素序列。 可以使用大括号 { } 或者 set() 函数创建集合,注意:创建一个空集合必须用 set() 而不是 { },因为 { } 是用来创建一个空字典。 parame = {value01,value02,...} set(value) basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'} print(basket) # 自动去重 {'or原创 2020-12-04 17:15:15 · 235 阅读 · 0 评论 -
python学习
mooc上北京理工大学的python课 温度转换的实例 python蟒蛇绘制实例 import turtle//引入头文件,相当于c++ 的 #include turtle.setup(650,350,200,200)//设置窗口的起始位置 turtle.penup()//拿起笔 turtle.fd(-250) turtle.pendown() turtle.pensize(25) turtle.pencolor("purple") turtle.seth(-40)//改变方向 for i in rang原创 2020-07-15 08:56:24 · 159 阅读 · 0 评论