[英]how to stop TypeError: '_io.TextIOWrapper' object is not subscriptable
IDK why it's giving me this error, I usually do something like this and it works. IDK为什么它给我这个错误,我通常做这样的事情并且它有效。 First time it ever did something like this.它第一次做这样的事情。
here Is my error这是我的错误
TypeError: '_io.TextIOWrapper' object is not subscriptable
this is my code这是我的代码
import time; import os
l = 0
while True:
e = open("your code", "r")
r = e.readlines()
e.close
l+=1
if l == 1:
l = 0
if e[l] == "help}0{":
print("echo}< end with >{ to print things")
I had a brain fart, I mixed up my own varibles.我脑子里放了个屁,我把自己的变量搞混了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.