結果 : how to convert python 2.7 code to python 3.8