hw1 practice

Plan to finish the homework in python, but more work needed. Just learn
some existing code, copyright@the original coders. Upload for backup