对于英文字符串:
line = ' "text": "uc",'
可以使用
line = line.replace(' ', '')
输出:
"text":"uc",
或者使用
for i in ' ,:"':
line = line.replace(i, '')
输出:
textuc
对于英文字符串:
line = ' "text": "uc",'
可以使用
line = line.replace(' ', '')
输出:
"text":"uc",
或者使用
for i in ' ,:"':
line = line.replace(i, '')
输出:
textuc