my_str = "万过薪月, 员序程马黑来, nohtyP学" print(my_str[10:4:-1]) print(my_str.split(", ")[1].replace("来", "")[::-1])