📜  删除尾随空格 python 字符串 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:07.385000             🧑  作者: Mango

代码示例1
vals_inp=input() 
list_set = list(vals_inp) 
vals = [x for x in list_set if x != ' '] 
set_vals = set(vals)