摘要: #九九乘法表1 for a in range(1,10): for b in range(1,a+1): print("%s*%s=%s"%(a,b,a*b),end="\t") print() #九九乘法表2 for a in range(1,10): for b in range(1,10): 阅读全文
posted @ 2020-09-05 22:47 短戈行 阅读(3489) 评论(0) 推荐(0) 编辑
摘要: 1.基础请求框架 from urllib import request url=r"http://www.baidu.com" req=request.Request(url) #构造请求 response=request.urlopen(req).read().decode() #获取响应 pri 阅读全文
posted @ 2020-09-05 16:15 短戈行 阅读(3466) 评论(0) 推荐(0) 编辑
摘要: File - Settings - Editor - File and Code Templates #-*- codeing = utf-8 -*- #@Time: ${DATE} ${TIME} #@Author: Wayne #@File: ${NAME}.py #@Software: ${P 阅读全文
posted @ 2020-09-05 14:51 短戈行 阅读(287) 评论(0) 推荐(0) 编辑