摘要: 作业1 代码与运行结果 for market_type in ["沪深A股", "上证A股", "深证A股"]: driver.get(market_urls[market_type]) time.sleep(5) try: wait.until(EC.presence_of_element_loc 阅读全文
posted @ 2025-11-28 18:17 lyxcba 阅读(7) 评论(0) 推荐(0)
摘要: 作业1 代码与运行结果 class ImageDownloader: def __init__(self): self.headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KH 阅读全文
posted @ 2025-11-17 20:33 lyxcba 阅读(22) 评论(0) 推荐(0)
摘要: 作业1 代码与运行结果 class WeatherForecast: def __init__(self): self.headers = { "User-Agent": "Mozilla/5.0 (Windows; U; Windows NT 6.0 x64; en-US; rv:1.9pre) 阅读全文
posted @ 2025-11-05 21:43 lyxcba 阅读(15) 评论(0) 推荐(0)
摘要: 作业1 代码与运行结果 import urllib.request from bs4 import BeautifulSoup url ="http://www.shanghairanking.cn/rankings/bcur/2020" response = urllib.request.urlo 阅读全文
posted @ 2025-10-19 17:07 lyxcba 阅读(39) 评论(0) 推荐(0)