劉任昌python字串方法count與split
HTML指令CSS指令STYLE大小寫都可以
x='下列何種數據資料單位代表1024GB?(1)1ZB(2)1EB(3)1PB(4)1TB\n下列哪一個名詞和其他三個名詞不同義?(1)數據資料(2)大數據(3)巨量資料(4)海量資料\n下列何者非屬網際網路興起後的數位商品或服務模式?(1)純網路銀行(2)電子資金轉帳(3)電子商務支付系統(4)加密貨幣\n機器人是人工智慧的容器,機器人是身體,而人工智慧可以比喻成機器人的哪一部分?(1)心臟(2)腳(3)手(4)大腦\n當保險業欲透過網路與電話語音等通路提供服務時,可運用何項技術驗證身分?(1)生物辨識(2)通訊技術(3)物聯網技術(4)網路技術\n下列何項敘述非屬純網路銀行的明顯獨特特色?(1)沒有實體分行(2)沒有實體ATM機器(3)營業時間無限制全年無休(4)透過APP 提供金融服務\n下列何者非屬我國核准設立之純網路銀行?(1)連線銀行(2)將來銀行(3)新網銀行(4)樂天銀行\n目前各國金融監理機關對比特幣抱持戒慎恐懼的態度,考量的原因包含下列哪幾項? A.洗錢 B.資恐 C.逃稅 D.詐騙(1)僅 A(2)僅 A、B(3)僅 A、B、C(4)A、B、C、D\n'
for i in range(1,6):
temp = '('+ str(i)+')' #將數字轉乘string
print(temp,'出現', x.count(temp))
y = x.split('\n') #分割split
for i in y:
print(i)
print(y[1])
https://aster1210.blogspot.com/2025/09/pythoncountsplit.html
回覆刪除https://biiken19071999.blogspot.com/2025/09/pythoncountsplit.html
回覆刪除https://chuthithu.blogspot.com/2025/09/pythoncountslipt.html
回覆刪除https://lipinle.blogspot.com/2025/09/pythoncountsplit.html
回覆刪除https://hidhfcaha.blogspot.com/2025/09/pythoncountsplit.html
回覆刪除https://mingenliu.blogspot.com/2025/09/pythoncountsplit.html
回覆刪除https://hodkrbcjlkwsnd.blogspot.com/2025/09/pythoncountsplit.html
回覆刪除程式設計的大X小x寫或括號,都不能互換。https://hodkrbcjlkwsnd.blogspot.com/2025/09/pythoncountsplit.html
刪除已修好 謝謝老師
刪除https://linpinxuan06.blogspot.com/2025/09/pythoncountsplit.html
回覆刪除https://chiiu-shih-min.blogspot.com/2025/09/pythonfind.html
回覆刪除https://kobasam.blogspot.com/2025/09/pythonfind.html
回覆刪除https://chenyouhong.blogspot.com/2025/09/pythoncountsplit.html?m=1
回覆刪除