#First i created a file named tt.txt using following code:
f=open("tt.txt","w+")
print(f)
f.write("Hello")
f.write("World")
f.close()
#and now i want to read 3rd character so i wrote the following code:
f=open("tt.txt","r")
text=f.read()
print(text)
print(f.read(2))
#But it dosen't work
我无法使用read()访问第三个元素,即“ l”。我不可以使用2作为参数