小编amm*_*lam的帖子

Slicing strings

In python, I want to slice strings in a list in such a way that first few characters from that list must be removed/spliced out.

a=['hello', 'things', 'becoming', 'expensive']
Run Code Online (Sandbox Code Playgroud)

如何从列表中的每个字符串中删除前两个字符以获取输出

['llo', 'ings', 'coming', 'pensive']

python list slice

2
推荐指数
1
解决办法
66
查看次数

标签 统计

list ×1

python ×1

slice ×1