摘要: 请用requests库的get()函数访问如下一个网站20次,打印返回状态,text()内容,计算text()属性和content属性所返回网页内容的长度。 1 import requests 2 url="https://www.baidu.com/" 3 def getHTMLText(url) 阅读全文
posted @ 2023-12-11 08:47 Colindada 阅读(11) 评论(0) 推荐(0)
摘要: 数码管 阅读全文
posted @ 2023-11-20 21:57 Colindada 阅读(100) 评论(0) 推荐(0)
摘要: 1 #03超市抹零 2 bill=float(input("请输入商品的总价格")) 3 print("{:.0f}".format(bill)) 1 #04成绩分差和平均值 2 import math 3 4 grade1=int(input()) 5 grade2=int(input()) 6 阅读全文
posted @ 2023-10-31 21:41 Colindada 阅读(11) 评论(0) 推荐(0)
摘要: 1 #蒙卡洛特矩中圆算概率 2 import random 3 import time 4 from tqdm import tqdm 5 6 count = 0 7 a=eval(input()) 8 random.seed(125) 9 data_iter=tqdm(range(a),unit= 阅读全文
posted @ 2023-10-29 22:42 Colindada 阅读(64) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示