python 读取txt里面 每列数据的前n个字符,返回到列表;
def randomlengthstr(randomlegth):
with open("1.txt","r") as f:
m=f.readlines() #读取所有内容到列表["123 45\n","123456\n"....]
result<
python 读取txt里面 每列数据的前n个字符,返回到列表;
def randomlengthstr(randomlegth):
with open("1.txt","r") as f:
m=f.readlines() #读取所有内容到列表["123 45\n","123456\n"....]
result<