coins = ['big-coin-','coins','bitcoin']
for coin in coins:
if coin.endswith('-'):
coin = coin.replace('-','')
print(coin)
print(coins)
更换不起作用?我想要 big-coin- 替换为 big-coin。谢谢你!
慕丝7291255
慕虎7371278
芜湖不芜
慕仙森
相关分类