shhehwushh 2021-06-05 21:07 采纳率: 63.2%
浏览 7

来个大神哥哥救救孩子吧,

 

  • 写回答

1条回答 默认 最新

  • 开向幼儿园的车 2023-01-07 19:04
    关注
    
    with open("text1.dat","r") as f:
        n = f.read()
        s = ""
        for i in n.split("\n"):
            for j in i[::-1]:
                s += j
            s += "\n"
        with open("text2.dat","w")as f:
            f.write(s)
    
    评论

报告相同问题?