4 python newline
我正在编写一个vcf解析器,我打开了文件,但现在我需要解析它们的名字.该文件显示"FN:John Smith ;;; \n\r \n"我想取出\n和\ r \n.有谁能够帮我?
And*_*are 12
使用rstrip功能:
rstrip
s = s.rstrip()
这将删除字符串末尾的所有空格.
归档时间:
15 年,3 月 前
查看次数:
10314 次
最近记录: