📌  相关文章
📜  with open("[Followed][{}]".format(self.username), "a+") as flist: - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:29.465000             🧑  作者: Mango

代码示例1
def AddFollowedList(self, name):
        # Appends followed username to files
        with open("[Followed][{}]".format(self.username), "a+") as flist:
            temp = name.strip() + "\n"
            flist.write(temp)
        self.ReadFiles()