發表文章

目前顯示的是 9月, 2026的文章

陳以晴excel串接字元concatenate試算表歷史 ㄈ

圖片
嵌入embed影片 嵌入網頁電子試算表發展歷史 excel常用函數 https://www.w3schools.com/excel/excel_functions.php Function Description =AND Returns TRUE or FALSE based on two or more conditions =AVERAGE Calculates the average (arithmetic mean) =AVERAGEIF Calculates the average of a range based on a TRUE or FALSE condition =AVERAGEIFS Calculates the average of a range based on one or more TRUE/FALSE conditions =CONCAT Links together the content of multiple cells =COUNT Counts cells with numbers in a range =COUNTA Counts all cells in a range that has values, both numbers and letters =COUNTBLANK Counts blank cells in a range =COUNTIF Counts cells as specified =COUNTIFS Counts cells in a range based on one or more TRUE or FALSE condition =IF Returns values based on a TRUE or FALSE condition =IFS Returns values based on one or more TRUE or FALSE conditions =LEFT Returns values from the left side of a cell =LOWER Reformats content to lowercase =MAX Returns the highest value in a range =MEDIAN Returns the middle v...

陳以晴double loop雙迴圈emoji繪文字

圖片
a="🐈"#練習雙迴圈for in range for i in range(7): for j in range(2): print(a,end='')#print預設換行\n print(str(i)+'劉任昌')#print()等於print(end='\n') print('str將數字轉成字串'+"\nint轉成整數,字串的+連結") print('換列的字碼',ord('\n'))

陳以晴EXCEL函數LFEFT,MID,RIGHT及PYTHON方法FIND

txt='地表最帥老師(1)賴清德(2)劉任昌(3)劉德華' #txt是字串string是字元character構成順序0,1,... print(len(txt),'利用find方式接物件後面') print('(1)的位置',txt.find('(1)')) print('(2)的位置',txt.find('(2)')) print('(2)的位置',txt.find('(3)')) print('最後-1',txt[-2]) for i in txt:print('迴圈一',i) for i in range(len(txt)):print('迴圈二',i,txt[i]) 24 利用find方式接物件後面 (1)的位置 6 (2)的位置 12 (2)的位置 18 最後-1 德 迴圈一 地 迴圈一 表 迴圈一 最 迴圈一 帥 迴圈一 老 迴圈一 師 迴圈一 ( 迴圈一 1 迴圈一 ) 迴圈一 賴 迴圈一 清 迴圈一 德 迴圈一 ( 迴圈一 2 迴圈一 ) 迴圈一 劉 迴圈一 任 迴圈一 昌 迴圈一 ( 迴圈一 3 迴圈一 ) 迴圈一 劉 迴圈一 德 迴圈一 華 迴圈二 0 地 迴圈二 1 表 迴圈二 2 最 迴圈二 3 帥 迴圈二 4 老 迴圈二 5 師 迴圈二 6 ( 迴圈二 7 1 迴圈二 8 ) 迴圈二 9 賴 迴圈二 10 清 迴圈二 11 德 迴圈二 12 ( 迴圈二 13 2 迴圈二 14 ) 迴圈二 15 劉 迴圈二 16 任 迴圈二 17 昌 迴圈二 18 ( 迴圈二 19 3 迴圈二 20 ) 迴圈二 21 劉 迴圈二 22 德 迴圈二 23 華

陳以晴Python撰寫金融常識測驗網頁

class Financial: def __init__(self, number, q, a, b, c, d, ans): self.number, self.q, self.ans = number, q, ans self.a, self.b, self.c, self.d = a, b, c, d f = open('C:/Users/user/Downloads/金融常識.txt','r',encoding='utf-8') read = f.readlines() #read = f.read() f.close() List = [] Answer=(4,4,3,4,3,2,3,3,4,2,4,4,4,3,4,2,3,1,1,2,1,2,3,3,1,3,4,4,3,4,1,4,3,2,4,2,2,3,2,4,1,4,1,1,4,3,1,2,4,1,2,1,4,4,4,1,4,2,1,3,3,1,4,4,3,2,2,2,4,4,1,3,3,1,2,4,1,3,4,4,2,4,4,3,4,1,3,2,3,2,3,2,2,2,4,4,4,1,1,2,2,4,4,1,4,1,4,4,4,2,1,1,2,1,2,1,2,2,3,3,3,4,2,1,1,1,1,2,2,1,4,4,4,4,4,4,4,3,4,4,1,1,2,2,3,4,4,3,1,4,2,3,3,2,1,3,4,4,2,4,1,1,3,3,2,2,3,1,2,1,4,3,3,2,2,2,1,4,2,4,3,3,3,1,3,3,2,3,3,1,4,4,3,2,4,2,2,4,1,1,1,3,1,3,2,2,3,4,4,3,2,2,1,2,4,1,1,2,2,1,1,1,3,1,2,2,2,1,1,4,1,3,1,1,1,1,1,3,1,2,3,3,3,2,4,3,3,3,1,2,4,2,3,3,1,4,2,3,3,3,4,1,2,3,2,3,4,2,3,4,4,1,2,4,3,4,4,2,2,3,1,4,3,4,2,1,2,3,2,4,2,1,3,4,1,2,1,1,4,1,2,4,1,4,3,4,4,2,2,1,1,2,3,4,3,3,1,3,1,4,4,3,2,4,4,2,1,1,4,1,1,2,3,...

陳以晴EXCEL的unicod與unichar相當於py

圖片
 <PRE STYLE="BORDER: 10PX RED SOLID"> a = "一"#定義一個變數a print(a, ord(a)) print("XFD相當於",24*26*26+6*26+4) print("2的14次方",2**14) for pig in range(19968,20000):     print(pig,"字碼的字元是",chr(pig))