Add GenerateDegree.py

k.txt and x.txt will be automatically generated