我有相同字符的字符串,例如'1254 ,,,,,,,,,,,,,,,, 982'.我打算做的是用'1254(,16)982'中的某些东西替换它,以便可以重建原始字符串.如果有人能指出我正确的方向,将非常感激
python compression string whitespace
compression ×1
python ×1
string ×1
whitespace ×1