gaopinghuang0 / python-challenge

Practice on http://www.pythonchallenge.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python_challenge

Practice on http://www.pythonchallenge.com/

all code in solutions-*.py

unofficial solutions: https://the-python-challenge-solutions.hackingnote.com/

links to official solutions: https://the-python-challenge-solutions.hackingnote.com/links.html

notes

challenge 5 - about pickle

  • Python has a more primitive serialization module called marshal, but in general pickle should always be the preferred way to serialize Python objects.
  • marshal exists primarily to support Python’s .pyc files.
  • classes are pickled by named reference, so the same restrictions in the unpickling environment apply. Note that none of the class’s code or data is pickled. These restrictions are why picklable functions and classes must be defined in the top level of a module.

challenge 6 - zipfile

  • add comment for zip file, see
  • an interesting way to hide info

About

Practice on http://www.pythonchallenge.com/


Languages

Language:Python 100.0%