20140817_02_HX400V_宜蘭國際童玩節_台灣 by 儲蓄保險王 · 2014-08-31 20140817_02_HX400V_宜蘭國際童玩節_台灣 https://www.youtube.com/watch?v=msZDx1zJcc0 相關文章Python容器(list, tuple, set, dict)的CRUD(Create, Read, Update, Delete)Python: 三個不同長度 pandas.DataFrame 的資料如何繪製在同一張散佈圖?Python: pandas.read_csv()如何設定sep參數才能讀取分隔子同時有, " " (空白)的csv檔? df = pd.read_csv('test.txt', sep = '\s*,\s*|\s+', engine='python')Python: matplotlib繪圖如何共用x axis, y axis, x label, ylabel? fig, axs = plt.subplots(nrows=2, ncols=3, sharex=True, sharey=True) ; plt.suplabel()Python: 如何使用functools.reduce逐步縮減可迭代對象,合併為單個結果? import functools; product = functools.reduce( lambda x, y: x * y, numbers) ; reduce(function, sequence [, initial]) -> value ; map(function, iterable) ; filter(function, iterable) ; map ; filter正則表示法(Regular Expression): pattern = re.compile(r'\d+') #re.Pattern ; pattern.match() ; pattern.search() ; pattern.findall() ; pattern.finditer() ; pattern.sub() 如何使用?Python: 如何創建多層column name的pandas.DataFrame? df = pd.read_csv ('data.csv', header=[0, 1], sep=",") ; col = pd .MultiIndex .from_arrays( aryCol )Python: listA.extend(listB) 與 listC = listA + listB的差別?Python: matplotlib.pyplot ; lines = ax.plot(x, y) ; 如果y是2D的 pandas.DataFrame ; 如何一次加入所有欄標籤當作圖例(legend)的labels? labels= y.columns.tolist() ; ax.legend(lines, labels)
0 Python TQC考題802 字元對應,ASCII碼ord(), chr(), list(str)會把字串的每一個字母拆分進入list中,string跟list都可以使用index定位,沒有非要將string轉為list, for i in str: i 也可以依序代入str的每一個chr 2022-05-01
0 Python爬蟲: 理解 response.text 與 BeautifulSoup 對象之間的關鍵區別 from bs4 import BeautifulSoup as bs ; response = requests.get(url) ; soup = bs(response.text) ; bs4.element.Tag .find_all() ; .select() ; .find() 差別為何?soup是大HTML, tag是小HTML,可以使用相同的方法 2024-01-21
近期留言