据我所知,docker 镜像在被拉取时会安装到 /var/lib/docker。有没有办法更改此位置,例如更改到 /mnt 之类的已安装卷?
据我所知,docker 镜像 /var/lib/docker
在被拉取时安装到。有没有办法更改此位置,例如更改到已安装的卷 /mnt
?
以下是如何从网站获取股票代码+名称的示例:
import requests
from bs4 import BeautifulSoup
url = "https://finance.yahoo.com/world-indices/"
headers = {
"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0"
}
soup = BeautifulSoup(requests.get(url, headers=headers).content, "html.parser")
for a in soup.select('a[data-test="quoteLink"]'):
print(f"{a.text:<30} {a['title']}")
印刷:
^GSPC S&P 500
^DJI Dow Jones Industrial Average
^IXIC NASDAQ Composite
^NYA NYSE COMPOSITE (DJ)
^XAX NYSE AMEX COMPOSITE INDEX
^BUK100P Cboe UK 100
^RUT Russell 2000
^VIX CBOE Volatility Index
^FTSE FTSE 100
^GDAXI DAX PERFORMANCE-INDEX
^FCHI CAC 40
^STOXX50E ESTX 50 PR.EUR
^N100 Euronext 100 Index
^BFX BEL 20
IMOEX.ME MOEX Russia Index
^N225 Nikkei 225
^HSI HANG SENG INDEX
000001.SS SSE Composite Index
399001.SZ Shenzhen Index
^STI STI Index
^AXJO S&P/ASX 200
^AORD ALL ORDINARIES
^BSESN S&P BSE SENSEX
^JKSE IDX COMPOSITE
^KLSE FTSE Bursa Malaysia KLCI
^NZ50 S&P/NZX 50 INDEX GROSS ( GROSS
^KS11 KOSPI Composite Index
^TWII TSEC weighted index
^GSPTSE S&P/TSX Composite index
^BVSP IBOVESPA
^MXX IPC MEXICO
^IPSA S&P/CLX IPSA
^MERV MERVAL
^TA125.TA TA-125
^CASE30 EGX 30 Price Return Index
^JN0U.JO Top 40 USD Net TRI Index