11 lines
204 B
Python
Raw Permalink Normal View History

2025-02-13 08:29:55 +08:00
# -*- coding: utf-8 -*-
"""
Created on Thu Jul 11 13:36:48 2024
@author: WANGXIBAO
"""
my_list = ['1',' 2', '3',' 4',' 5']
my_list.pop(0) # 移除第一个元素
print(my_list) # 输出: [2, 3, 4, 5]