add python-pattems file
add state.py
Merge branch 'master' of github.com:ZuiGuangYin/Codes