QString 删除最后的0
QString removeTrailingZeros(const QString &str) {
QString result = str;
int size = result.size();
while (size > 0 && result.at(size - 1) == '0') {
result.remove(size - 1, 1);
size--;
}
return result;
}