摘要:
urlretrieve(“网页地址”,“本地地址”) 把网页上的信息直接保存到本地 urllib.request.urlretrieve("http://www.baidu.com","D:\\mypython\\download") urlcleanup() 清除缓存 info() 查看页面简介信 阅读全文
posted @ 2019-12-13 21:35
Godwall
阅读(228)
评论(0)
推荐(0)
摘要:
一、数值类型(int、float) # %d、%f是占位符>>> a = 3.1415926>>> print("%d"%a) #%d只能输出整数,int类3>>> print("%f"%a) #%f输出浮点数3.141593>>> print("%.2f"%a) #按照要求输出小数位数3.14>> 阅读全文
posted @ 2019-12-13 17:01
Godwall
阅读(297)
评论(0)
推荐(0)
摘要:
转载于:https://www.cnblogs.com/MnCu8261/p/5418632.html python中内置的数据类型有列表(list)元组(tuple)字典(directory)。 1 list list是一种可变的有序的集合。来看一个list实例: #第一种方法: >>> name 阅读全文
posted @ 2019-12-13 16:11
Godwall
阅读(648)
评论(0)
推荐(0)


浙公网安备 33010602011771号