04 2020 档案

摘要:#!/usr/bin/env python # -*- coding:utf-8 -*- #@Time : 2020/4/23 8:57 #@Author: ltl #@File : daxueDownload.py import urllib.request import threading fr 阅读全文
posted @ 2020-04-23 09:43 R小哥 阅读(459) 评论(0) 推荐(0)
摘要:Python的格式化输出 方法一:传统方法 与C语言类似,可以采用“%”作为格式化输出的标记。如: print("The first number: %5d, the second number: %8.2f" % (123, 456.789)) 输出的结果为: The first number: 阅读全文
posted @ 2020-04-23 09:42 R小哥 阅读(726) 评论(0) 推荐(0)
摘要:解决方案:import urllib.requestfrom bs4 import BeautifulSoup site = 'http://www.pm25.com/' html = urllib.request.urlopen(site) soup = BeautifulSoup(html,'h 阅读全文
posted @ 2020-04-22 17:14 R小哥 阅读(933) 评论(0) 推荐(0)
摘要:#!/usr/bin/env python # -*- coding:utf-8 -*- #@Time : 2020/4/22 16:14 #@Author: ltl #@File : PM2.5Download.py import urllib.request import threading f 阅读全文
posted @ 2020-04-22 17:09 R小哥 阅读(579) 评论(0) 推荐(0)