我正在尝试编写一个函数来检查尾随空格,但不删除空格。但我不知道该怎么做。有人可以教我吗?
谢谢
python string whitespace syntax-checking
python ×1
string ×1
syntax-checking ×1
whitespace ×1