發表文章

徐梓寧HTML,CSS,JAVASCRIP單一網頁計算器

簡易網頁計算機 0 AC ⌫ / 7 8 9 * 4 5 6 - 1 2 3 + 0 . =

徐梓寧EXCEL公式Formulas

圖片
檔案 常用 插入 版面配置 公式 資料 校閱 檢視 說明 File Home Insert Page Layout Formulas Data Review View Help 插入函數 自動加總 最近用過的函數 財務 邏輯 文字 日期和時間 查閱與參照 數學與三角函數 其他函數 Insert Function AutoSum Recently Used Financial Logical Text Date & Time Lookup & Reference Math & Trignometric More Functions

徐梓寧HTML,CSS,Javascript,Python

HTML SRC=SOURCE來源,FRAME框架,PARAGRAPH段落,HEADER標題 CSS階層式樣式表 Javascript Python

徐梓寧EXCEL名稱方塊,AND,OR,COUNT,COUNTIF,INDIRECT間接定址

圖片
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! 25 FALSE FALSE #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! 29 FALSE FALSE 6 3 6 4 0 32 118 0 3 買權賣權 COUNT統計有幾個數字 範圍 S1:Y506 =COUNTIF(X508)) 3 TRUE 買的權利 認購的權利 0 =COUNT(X508) 501 FALSE 期貨交易所交易 證卷交易所交易 =COUNT(INDIRECT(X508))

徐梓寧python輸入input尋找find沒找到-1

file = open('金融常識.txt','r',encoding='utf-8') lines = file.readlines() file.close() x = input('徐梓寧輸入搜尋關鍵詞: ') for line in lines: if line.find(x) != -1: print(line) file = open('金融常識.txt','r',encoding='utf-8') lines = file.readlines() file.close() x = input('徐梓寧輸入搜尋關鍵詞: ') n=0 for line in lines: if line.find(x) != -1: n=n+1 print(n,'',line,end='') print('總共{n}題') file = open('金融常識.txt','r',encoding='utf-8') lines = file.readlines() file.close() x = input('徐梓寧輸入搜尋關鍵詞: ') n=0 for line in lines: if x in line: n=n+1 print(n,'',line,end='') print('總共{n}題') file = open('金融常識.txt','r',encoding='utf-8') reading = file.read() file.seek(0) #回到檔案的開始 lines = file.readlines() file.close() print('read()方法讀共', len(reading), 'readlines()方法讀共', len(lines)) x = input('劉任昌輸入搜尋關鍵詞: ') n = 0 fo...

徐梓寧python集合set字典dict統計字元數目37241不同字數1251

圖片
file = open('金融常識.txt','r',encoding='utf-8') reading = file.read() file.close() print('檔案字元characters數:', len(reading)) mySet = set(reading) myDict = dict() for j in mySet: myDict[j] = 0 for i in reading: myDict[i] += 1 for j in mySet: print(f"字元「{j}」出現{myDict[j]:,}次數") print(f'字元數目{len(reading):,},不同字元數{len(mySet):,}') #pythi=on和其他所有語言不同的特徵 f string格式化字串文字 print(f"徐梓寧統計左引號(出現次數{myDict['(']:,}") print(f'徐梓寧統計右引號(出現次數{myDict[")"]:,}') print(f'徐梓寧統計504每題四個選項至少有{504*4:,}')