字串 物件修改. x = "GoodBye~" print(x,id(x)) x = x[:-1] #字串不能修改,會直接成為新物件 print(x,id(x)). GoodBye~ 1928774669296 GoodBye 1928774658672 ...
確定! 回上一頁