後來在python 2的時候加入了.format()的用法 ... 輸出list的第0個位置 print(f'list2[1:5]:{list2[1:5]}') #輸出list的從第1個位置到第5個位置前(第4個位置). 結果如下.
確定! 回上一頁