看板 [ Python ]
討論串[問題] 迴圈問題
共 7 篇文章
首頁
上一頁
1
2
下一頁
尾頁

推噓2(2推 0噓 1→)留言3則,0人參與, 3年前最新作者TuCH (謬客)時間3年前 (2022/02/21 10:53), 編輯資訊
0
0
0
內容預覽:
參考一下. 錯誤處理就不寫了. # 輸入資料. my_date = input('Please input daterange ex: 2018/6~2019/12'). # 解析資料. start_date, end_date = my_date.split('~'). start_year, s
(還有589個字)

推噓3(3推 0噓 7→)留言10則,0人參與, 最新作者skyleona (多益爆了!)時間3年前 (2022/02/20 23:43), 3年前編輯資訊
0
0
0
內容預覽:
大家好,最近剛學python有迴圈問題想請教. 用迴圈方式去依序將年份及月份列出來,月份設定為1時,輸出正常:. for year in range(2000,2020):. for month in range(1,13):. print(str(year) + '/' + str(month)
(還有133個字)
首頁
上一頁
1
2
下一頁
尾頁