2

I just new in python. How to save variable data to file like save command in MATLAB.

Thank you

0

2 Answers 2

2

Use pickle.dump in Python 3.x, or cPickle.dump in Python 2.x.

Sign up to request clarification or add additional context in comments.

Comments

1

Thx TheBlackCat

Example my code

try:
    import cPickle as pickle  # Improve speed
except ValueError:
    import pickle

file_temp = open('temp', 'w')
pickle.dump(scenes, file_temp)
file_temp.close()

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.