
Python
Python
#老程
百里红尘,不醒归路
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python 鼠标控制
1、先看下我的游戏初始界面 def show_stear(): ck = pygame.display.set_mode((640,900)) # 游戏窗口 pygame.display.set_caption("是男人就下一百层") # 给窗口取个名 我小时候喜欢双截龙和拳皇 clock = pygame.time.Clock() # 游戏刷新速度(我个人这么理解) start_ck = pygame.Surf原创 2020-07-23 09:03:49 · 565 阅读 · 0 评论 -
Python 京东爬取案例
一个爬虫案例,爬取的一个京东网页; import re #调用正则表达式模块 import urllib.request #调用urllib.request模块 def craw(url,page): #定义函数 html1=urllib.request.urlopen(url).read() #读取对应网页的全部代码 html1=str(html1) pat1='<ul class="gl-warp clearfix">.+? id="J_原创 2020-07-17 10:21:06 · 505 阅读 · 0 评论