源代码
txt = "apple, banana, cherry" x = txt.rsplit(", ") print(x)
运行结果