P4B Quiz (7):字串資料型態介紹與使用SimpleLearn2026 年 10 月 22 日累積瀏覽 3,767 次 Welcome to your quiz -「 P4B Quiz (7):字串資料型態介紹與使用」 Name Email 1. 以下執行結果是什麼? Name = "Simple Learn"print(Name[1]) S i r n None 2. 以下執行結果是什麼? Name = "Simple Learn"print(Name[-2]) S i r n None 3. 以下執行結果是什麼? Name = "Simple Learn"print(Name[1:5]) 4. 以下執行結果是什麼? Name = "Simple Learn"print(Name[1:9:2]) 5. 下面輸出結果是什麼? print("AB\nC\nDE") ABC DE AB CD E AB\nC\nDE AB C DE None 6. 以下執行結果是什麼? "Hello SimpleLearn".find("Simple") 5 6 7 8 None Hint 7. 以下執行結果是什麼? print('print("Hello SimpleLearn")') Hello SimpleLearn "Hello SimpleLearn" print("Hello SimpleLearn") 'print("Hello SimpleLearn")' None 8. 以下執行結果是什麼? print("Hello" + " " + "SimpleLearn") HelloSimpleLearn "Hello" + " " + "SimpleLearn" Hello SimpleLearn "Hello" "SimpleLearn" None 9. 以下執行結果是什麼? x = "Simple Learn"print("M" in x) True False None 10. 以下執行結果是什麼? x = 369print(str(x)) "369" 369 str int None Time's up