替换一个字符串中数字 怎么写

我想请说下,替换一个字符串中数字 怎么写
最新回答
茵沫

2025-03-02 04:50:11

Replaces the numbers in a string
替换子串:replace()
替换多个不同的
字符串
:re.sub(),re.subn()
正则表达式
替换:re.sub(),re.subn()
根据位置来替换:slice()