python 随笔记

python代码默认规则,开发时,建议一行代码不要超过80个字符,如果超过,可按以下形式编写

with open("testfilename","r",encoding='utf-8') as f ,\
            open("otherfile","r",encoding='utf-8') as f2:
        for line in f:
            #. . .
View Code

猜你喜欢

转载自www.cnblogs.com/pytian/p/11697312.html