- 博客(3)
- 收藏
- 关注
原创 requests 输入城市查询肯德基店信息
import requestsimport jsonif __name__ == '__main__': url = "http://www.kfc.com.cn/kfccda/ashx/GetStoreList.ashx" site = input("城市") param = {'op': 'keyword','cname':'' ,'pid':'' ,'keyword': site,'pageIndex': '1','pageSize': '10'} head.
2022-01-24 19:25:24 657
原创 requests学习 指定关键词的搜狗页面
import requestsif __name__ == '__main__': #进行UA伪装 headers = {"user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36 Edg/97.0.1072.69"} url = "https://www.sogou.com/web.
2022-01-22 23:22:27 403
原创 python初学作业-循环
循环列出九九乘法表counter = 1i = 1for counter in range(1,10,1): for i in range(1,counter+1, 1): z = counter * i print("%d * %d = %d"%(counter,i,z),end = "\t") print("\n")
2022-01-16 22:51:59 781
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人