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
阅读全文
摘要:Python的格式化输出 方法一:传统方法 与C语言类似,可以采用“%”作为格式化输出的标记。如: print("The first number: %5d, the second number: %8.2f" % (123, 456.789)) 输出的结果为: The first number:
阅读全文
摘要:解决方案:import urllib.requestfrom bs4 import BeautifulSoup site = 'http://www.pm25.com/' html = urllib.request.urlopen(site) soup = BeautifulSoup(html,'h
阅读全文
摘要:#!/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
阅读全文

浙公网安备 33010602011771号