将python2的写法换成python3