李東霖python迴圈range 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 4月 20, 2023 w3shool 程式碼#註解李東霖程式交易python迴圈相當於EXCEL一列#相當於JavaScript的//for i in range(5): print("第"+str(i)+"列")#整數i要漢字串組+連,先轉成字串string指令str 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 留言 George2023年5月6日 清晨7:14421.在html模式下才可以培養專業回覆刪除回覆回覆新增留言載入更多… 張貼留言
李東霖python import openpyxl 處理EXCEL 5月 18, 2023 import openpyxl #劉任昌輸入import openpyxl處理EXCEL的函式庫 book = openpyxl.load_workbook(r'wb.xlsx') #開啟EXCEL工作簿wb.xlsx print("1. 列出所有工作表名稱") sheetNames=book.sheetnames #所有工作表的集合 for name in sheetNames: print(name) print("2. 針對特定工作表, 列出前面數列") #sheet = book["python"] #for row in sheet.iter_rows(min_row=1, max_row=3, min_col=1, max_col=5, values_only=True): # print(row) print("3. 列出工作表所有內容") #sheet["F1"], sheet["G1"], sheet["H1"], sheet["I1"]="波段H","波段L","部位","損益" #sheet["F2"], sheet["G2"], sheet["H2"], sheet["I2"]=sheet["C2"].value, sheet["D2"].value, 0, 0 #for row in sheet.iter_rows(min_row=1, max_row=3, min_col=1, max_col=9, values_only=True): # print(row) #book.save() 閱讀完整內容
李東霖UTF-8,資料型態 6月 15, 2021 維基百科UTF8 劉任昌101單元 劉任昌102單元 UTF-8(8-bit Unicode Transformation Format)是一種針對Unicode的可變長度字元編碼,也是一種字首碼。它可以用一至四個位元組對Unicode字元集中的所有有效編碼點進行編碼,屬於Unicode標準的一部分。 以上內容的HTML原始碼如下 <h1>維基百科UTF8</h1> <iframe height="300" src="https://zh.wikipedia.org/wiki/UTF-8" width="100%"> </iframe> <img src="https://upload.wikimedia.org/wikipedia/commons/c/c4/Utf8webgrowth.svg" width="100%" /> <h1>劉任昌101單元</h1> <p style="text-align: left;"><iframe allowfullscreen="" class="BLOG_video_class" height="266" src="https://www.youtube.com/embed/kPGpKysVOdQ" width="320" youtube-src-id="kPGpKysVOdQ"></iframe> <h1>劉任昌102單元</h1><p style="text-align: left:"> UTF-8(8-bit Unicode Transformation Format)是一種針對Unicode的可變長度字元編碼,也是一種字首碼。它可以用一至四個位元組對Unicode字元集中的所有有效編碼點進行編碼,屬於Unicode標準的一部分。 <p> 閱讀完整內容
421.在html模式下才可以培養專業
回覆刪除