Facebook
From Przemysław, 5 Months ago, written in Python.
Embed
Download Paste or View Raw
Hits: 134
  1. import pickle
  2.  
  3. scores = (["33"])
  4. f = open("best_score.dat", "ab+")
  5. pickle.dump(scores, f)
  6. f.close()
  7. f = open("best_score.dat", "rb")
  8. scores = pickle.load(f)
  9. print(scores)
  10. f.close()

Replies to kod rss

Title Name Language When
Re: kod Szymon python 5 Months ago.