P4B Quiz (7):字串資料型態介紹與使用

by KC
0 comment

Welcome to your quiz -「 P4B Quiz (7):字串資料型態介紹與使用

Name
Email
1. 
以下執行結果是什麼?

Name = "Simple Learn"
print(Name[1])

2. 
以下執行結果是什麼?

Name = "Simple Learn"
print(Name[-2])

3. 
以下執行結果是什麼?

Name = "Simple Learn"
print(Name[1:5])

4. 
以下執行結果是什麼?

Name = "Simple Learn"
print(Name[1:9:2])

5. 
下面輸出結果是什麼?

print("AB\nC\nDE")

6. 
以下執行結果是什麼?

"Hello SimpleLearn".find("Simple")

7. 
以下執行結果是什麼?

print('print("Hello SimpleLearn")')

8. 
以下執行結果是什麼?

print("Hello" + " " + "SimpleLearn")

9. 
以下執行結果是什麼?

x = "Simple Learn"
print("M" in x)

10. 
以下執行結果是什麼?

x = 369
print(str(x))

error: Content is protected !!