str = "hello," print str.rstrip(",") str = "hello,\n" print str.rstrip(",") print str.rstrip(",\n")
hello hello, hello
No comments:
Post a Comment