如何删除字符串中的NUL字符/空格?
我试着在这里使用完整的答案和评论。似乎他们都不适合我。在
例如,字符串是m o d e m
for part_entry in part_list:
partStr = unicode(part_entry[5])
partStr.rstrip(' \t\r\n\0')
logging.debug('******')
logging.debug('PartName= '+partStr)
This is我当前编译的内容。在
我试着记录它,它像这样呈现输出
Tags:
试试这个:
相关问题 更多 >
编程相关推荐