第五周課堂筆記
1.上課舉例:
lst=[‘a’,‘b’,‘c’,‘d’,‘e’]
print(lst[2:])
[‘c’, ‘d’, ‘e’]
#宣告list為一個串列,串列裡面有五個元素分別為a字串,b字串,c字串,d 字串,e字串
lst=[‘a’,‘b’,‘c’,‘d’,‘e’]
#把編號2的元素改爲x字串
lst[2]=‘x’
#新增一個元素為c字串
Are you sure to leave this team?
Once you delete your team, all team notes will be deleted and cannot be recovered. Please ensure you've exported or transfered these notes.
Enter team name before deleting it:
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up