提问人:sodiumnitrate 提问时间:6/16/2023 更新时间:6/16/2023 访问量:47
Python 脚本,用于获取以特殊字符开头的行数,而无需读取整个文件
Python script to get line numbers of lines starting with a special character without reading the whole file
答: 暂无答案
上一个:在 C 中加载 MNIST
提问人:sodiumnitrate 提问时间:6/16/2023 更新时间:6/16/2023 访问量:47
答: 暂无答案
上一个:在 C 中加载 MNIST
评论
for n, line in enumerate(file, 1): if line.startswith('>'): line_nums.append(n)