Update methods.py

更正了临位交换法的错误