If I have a list of strings such as:
[("aaaa8"),("bb8"),("ccc8"),("dddddd8")...]
What should I do in order to get rid of all the 8
s in each string? I tried using strip
or replace
in a for loop but it doesn't work like it would in a normal string (that not in a list). Does anyone have a suggestion?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…