2024 iThome 鐵人賽
Share More Gain More
Python
選手 80 文章 1490
Day 3
2024-09-17
291
0
輸入input:用法是input(字串)執行後,輸出括號內的字串,並讀取使用者輸入的內容,input()函式的回傳值是字串型別比如說x=input("...
Day 3
2024-09-17
289
0
Kids With the Greatest Number of Candies 1431. Kids With the Greatest Number of...
Day 3
2024-09-26
288
0
當字串與變數交錯時,可以在字串中有變數的地方加上格式詞,字串後加上%(),括弧內依順序放入一至多個變數,每個變數用逗號隔開。範例: a=1 b=2 print(...
Day 4
2024-09-18
288
0
承接昨天的格式化輸出,今天會學另為兩個格式化輸出的方法%和.format()。【%指定格式化輸出】%指定格式化輸出會比format語法更容易撰寫,特別是在需要同...
Day 7
2024-09-17
288
0
今天要分享的是實作練習-碼錶、集合類型list/sets/tuple用法、實作練習-購物車程式:首先是實作練習-碼錶(會用到前面所學的語法):1. import...
Day 13
2024-09-26
288
0
下載song_rank.csv Python import pandas as pd with open('data/song_rank.csv') as f...