摘要:
1.请用requests库的get()函数访问谷歌网站20次,打印返回状态,text()内容,计算text()属性和content属性所返回网页内容的长度。 import requestsfor i in range (20): print("第",i+1,"次访问") r=requests.get 阅读全文
摘要:
#绘制六角形import turtle as tt.penup()t.fd(-80)t.pendown()t.seth(90)for i in range(6): t.left(60) t.fd(100) t.right(120) t.fd(100)t.fd(100)for i in range(5 阅读全文
摘要:
#五角星绘制import turtle as tt.setup(500,500,200,200)t.penup()t.fd(-150)t.pendown()t.fillcolor("red")t.begin_fill()for i in range(5): t.fd(300) t.right(180 阅读全文