Python: while迴圈 by 儲蓄保險王 · 2022-03-06 Python: while迴圈 total =10 while total < 100: print(total) total = total + 10 執行結果: 10 20 30 40 50 60 70 80 90 相關文章Python: import sys , platform , time , random,自定義函數(*參數) #可輸入多個參數 #有/無參數,有/無回傳值,四種自定義函數年收入50萬的投資人如何累積八千萬或提前15年累積千萬退休金? Python:如何使用numpy_financial.fv()計算終值?Python逐位元運算(bitwise operation),或or | , 且and & , 互斥或xor ^ , 反向~ ;位元左移 x << y => 效果同x*(2**y) ; 位元右移 x>>1 => 效果同x//2;x>>16效果同 x//(2**16)如何用tkinter製作Python的GUI(圖形使用者介面)? from tkinter import Tk, Button, filedialog ; 物件導向避免使用全域變數 ; pandas.read_csv(fpath, skip_blank_lines = True) 可以濾掉空列,Tab , 不定數空白Python TQC考題210_三角形判斷,if 條件1:動作1 elif 條件2:動作2, else: 動作n,==為邏輯判斷式,=為指定台中搬家公司推薦|精緻搬家/搬家打包服務/跨縣市搬家|佳旺搬家Python常用的模組內建常數; __name__ ; __file__ ; __doc__ ; __all__ ;__dict__; vars()->Dict[str,str] ; dir()->List[str]全台美食、親子景點懶人包,日本自由行懶人包、必買必吃規劃,連假旅遊一次搞定!Python .encode() 字符串編碼與轉換,ord()函數求得chr的ASCII碼,struct.pack()
0 Python: matplotlib如何設定座標軸刻度? plt.xticks(seq, labels) ;如何生成fig, ax物件? fig = plt.figure(figsize= (10.24, 7.68)) ; ax = fig.add_subplot() ; fig, ax = plt.subplots(figsize=(10.24, 7.68)) ; 如何使用中文? plt.rcParams[“font.family”] = [“Microsoft JhengHei”] 2023-02-08
0 Python:如何確保只有單欄資料的變數,其型態是 pandas.Series 而非單欄的DataFrame? pandas.DataFrame.squeeze() ; df.set_index() 將兩欄的df,其中一欄設為index後,其型態是單欄的DataFrame還是Series? 2023-05-01
近期留言