看板
[ Python ]
討論串[問題] 新手請益一題簡單的if statement
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
原po的迴圈跑完只有存到ord(89) 也就是Y 所以答案永遠是Z. 提供我的寫法 順便確保不能輸入A-Z以外的東西. check_lst = [chr(i) for i in range(65,91)]. char = input('Enter an upper-case character: '
(還有157個字)
內容預覽:
大家好. 新手想請教一題簡單的題目. 但不知為何我的答案總是Z. 似乎沒有成功loop. 還請大家賜教 感謝!. 題目:. Write a program that takes a character as input (a string of length 1), whichyou should
(還有390個字)
首頁
上一頁
1
下一頁
尾頁