![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据
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 元素相乘 ## 方法1 price = [9.73,8.73,6.73] quantity=[500,1000,1500] total_amount=sum([i*j for i,j in zip(price,quantity)]) # 23690.0 ## 方法2 import numpy as np price2=np.arange(9.7,5.7,-1.0) ## ref : https://numpy.org/doc/stable/reference/generated/numpy..原创 2021-11-19 17:06:15 · 583 阅读 · 0 评论 -
获取pbc统计数据
`http://www.pbc.gov.cn/diaochatongjisi/116219/116319/index.html from selenium import webdriver as wd import pandas as pd cps = 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 · 521 阅读 · 0 评论