摘要: 一、小鸟管道游戏 import pygame import sys import random class Bird(object): """定义一个鸟类""" def __init__(self): """定义初始化方法""" self.birdRect = pygame.Rect(65, 50, 阅读全文
posted @ 2023-12-25 19:31 李想2022310143126 阅读(16) 评论(0) 推荐(0)
摘要: (2)请用requests库的get()函数访问如下一个网站20次,打印返回状态,text()内容,计算text()属性和content属性所返回网页内容的长度。(不同学号选做如下网页,必做及格) import requests url = "https://www.baidu.com/" for 阅读全文
posted @ 2023-12-25 19:13 李想2022310143126 阅读(14) 评论(0) 推荐(0)