
数据
khblog2022
The older we grow the greater becomes our wonder at how much ignorance one can contain without bursting one's clothes. --Mark Twain
展开
-
python list 操作
list 元素相乘## 方法1price = [9.73,8.73,6.73]quantity=[500,1000,1500]total_amount=sum([i*j for i,j in zip(price,quantity)]) # 23690.0## 方法2import numpy as npprice2=np.arange(9.7,5.7,-1.0) ## ref : https://numpy.org/doc/stable/reference/generated/numpy..原创 2021-11-19 17:06:15 · 628 阅读 · 0 评论 -
获取pbc统计数据
`http://www.pbc.gov.cn/diaochatongjisi/116219/116319/index.htmlfrom selenium import webdriver as wdimport pandas as pdcps = wd.ChromeOptions()cps.add_argument('--headless')bs = wd.Chrome(options=cps)bs.get('http://www.pbc.gov.cn/diaochatongjisi/reso原创 2021-09-10 20:49:10 · 598 阅读 · 0 评论