- 博客(5)
- 资源 (5)
- 收藏
- 关注
原创 python爬取天气信息
python爬取天气信息python爬取天气信息1.导入python及其他模块import reimport urllibimport urllib.requestimport pprintimport os as myosimport datetime2主程序num =3isend=[ ]if __name__ == '__main__': print(datetime.datetime.now()) url = r"http://www.weather.com.
2021-07-15 08:29:28 163
原创 pygame 编写的小游戏
pygame 编写的小游戏1.导入pygame及其他模块import sysimport threadingimport pygame2建立使用类-人`class ClassPeople: colunm=0 row=0 speed=[0.1,0.1] ball=pygame.image.load('D:\\图片\\黄色.PNG') ballrect=ball.get_rect() def __init__(self, c,r,s,s1):
2021-05-11 09:42:38 649
原创 python类实现多次生成
python类实现重复生成1.写一个类class ClassName1 : #定义基本属性 name="" age=0 #定义私有属性,私有属性在类外部无法直接进行访问 _weight=0 def __init__(self,n,a,w): self.name=n self.age=a self._weight=w def speak(self): print('123')
2021-05-10 17:25:01 436
c#与QPLC的连接
2017-09-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人