#! /usr/bin/python # -*-coding:UTF-8-*- path = './test2.txt' f_name = open(path,'r') print(f'read result:{f_name.read(12)}')