• python怎么读取txt

    文件的打开的两种方式 f = open("data.txt","r") #设置文件对象f.close() #关闭文件#为了方便,避免忘记close掉这个文件对象,可以用下面这种方式替代with o

    2022-4-20
    43 0 0