標題:
串列 (一)
[打印本頁]
作者:
tonyh
時間:
2019-7-16 11:06
標題:
串列 (一)
假設有一串列其內容如下:
list=["忠","孝","仁","愛","信","義","和","平"]
試取出串列中的第1到第5個元素
list=["忠","孝","仁","愛","信","義","和","平"]
print(list[1:6])
複製代碼
作者:
穆玨諺
時間:
2019-7-16 11:23
list=["忠","孝","仁","愛","信","義","和","平"]
print(list[1:6])
複製代碼
作者:
黃宇綸
時間:
2019-7-16 11:23
list=["忠","孝","仁","愛","信","義","和","平"]
print(list[1:6])
複製代碼
作者:
張彥承
時間:
2019-7-16 11:24
list=["忠","孝","仁","愛","信","義","和","平"]
print(list[1:6])
複製代碼
作者:
穆宥臻
時間:
2019-7-16 11:24
list=["忠","孝","仁","愛","信","義","和","平"]
print(list[1:6])
複製代碼
作者:
林凱楓
時間:
2019-7-16 11:24
list=["忠","孝","仁","愛","信","義","和","平"]
print(list[1:6])
複製代碼
作者:
黃宇瑄
時間:
2019-7-16 11:24
list=["忠","孝","仁","愛","信","義","和","平"]
print(list[1:6])
複製代碼
作者:
孫紹普
時間:
2019-7-16 11:24
list=["忠","孝","仁","愛","信","義","和","平"]
print(list[1:6])
複製代碼
作者:
黃鋐粟
時間:
2019-7-16 11:25
list=("忠","孝","仁","愛","信","義","和","平")
print(list[1:6])
作者:
王禹恆
時間:
2019-7-16 11:28
list=["忠","孝","仁","愛","信","義","和","平"]
print(list[1:6])
複製代碼
作者:
李宇澤
時間:
2019-7-16 11:28
list=["忠","孝","仁","愛","信","義","和","平"]
print(list[1:6])
複製代碼
作者:
曾博宇
時間:
2019-7-16 11:29
list=["忠","孝","仁","愛","信","義","和","平"]
print(list[1:6])
複製代碼
作者:
王柏諺
時間:
2019-7-16 11:30
ist=["忠"l,"孝","仁","愛","信","義","和","平"]
print(list[1:6])
複製代碼
作者:
蔡沛倫
時間:
2019-7-16 11:30
list=["忠","孝","仁","愛","信","義","和","平"]
print(list[1:6])
複製代碼
作者:
王宥媗
時間:
2019-7-16 11:31
list=["忠","孝","仁","愛","信","義","和","平"]
print(list[1:6])
複製代碼
作者:
王銘鴻
時間:
2019-7-16 11:33
lise=["忠","孝","仁","愛","義","和","平"]
print(list[1:6])
複製代碼
作者:
楊子毅
時間:
2019-7-16 11:53
list=["忠","孝","仁","愛","信","義","和","平"]
print(list[1:6]
複製代碼
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://istak.org.tw/seed/)
Powered by Discuz! 7.2