import pickledFile = open("storage.dat", "wb")x = 123.467pickle.dump( x,dFile )y = 10pickle.dump( y,dFile )z = { 1 : "Hello", 2 : "Goodbye" }pickle.dump( z, dFile )dFile.close()iFile = open("storage.dat", "rb" )d1 = pickle.load(iFile)print d1d2 = pickle.load(iFile)print d2d3 = pickle.load(iFile)print d3iFile.close()print "Done"
Name (required)
email (will not be published) (required)
Website