Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在制作一个我希望可以保存的游戏。有没有办法对 python 或 pygame 进行编程,以便它创建一个记录玩家进度的记事本(或类似的东西)文件?我对python相当陌生,所以请简单解释一下。谢谢。
您可以使用Pickle将变量序列化到文件中。