結果 : convert .net code to python