在eclipse做python开发时,为什么会报红线,xx错误。(不可运行)
这是我的代码:assigned=str(self.different_connect_way(new_assignee_assigned_ids_link,pastDoN...
这是我的代码:
assigned = str(self.different_connect_way(new_assignee_assigned_ids_link,pastDoName2))
assignee_assigned = str(self.different_connect_way(new_assginee_reporter_ids_link,pastDoName2))
need_info = str(self.different_connect_way(need_info_reporter_ids_link,pastDoName2))
wontfix = str(self.different_connect_way(wontfix_reporter_ids_link,pastDoName2)
invalid = str(self.different_connect_way(invalid_reporter_ids_link,pastDoName2)
fixed_a = str(self.different_connect_way(fixed_a_month_ids_link,pastDoName2)
duplicate = str(self.different_connect_way(duplicate_reporter_fixed_ids_link,pastDoName2)
duplicate_not = str(self.different_connect_way(duplicate_reporter_not_fixed_ids_link,pastDoName2)
在第5行的 invalid 报错。删掉这行下一行 fixed_a 就会报错
xx上的错误是:
Encountered "invalid" at line 156, column 13. Was expecting one of: "(" ... ")" ... "[" ... "," ... "." ... "+" ... "-" ... "*" ... "/" ... "//" ... "<<" ... ">>" ... "%" ... "^" ... "|" ... "&" ... ">" ... "<" ... "==" ... "<=" ... ">=" ... "<>" ... "!=" ... "or" ... "and" ... "not" ... "is" ... "in" ... "if" ... "for" ... "," ...
这个是什么意思啊?为什么突然写着写着就报错了,上面的一样为什么就不会报错?
导致整个工程启动都没反应。。。。求解? 展开
assigned = str(self.different_connect_way(new_assignee_assigned_ids_link,pastDoName2))
assignee_assigned = str(self.different_connect_way(new_assginee_reporter_ids_link,pastDoName2))
need_info = str(self.different_connect_way(need_info_reporter_ids_link,pastDoName2))
wontfix = str(self.different_connect_way(wontfix_reporter_ids_link,pastDoName2)
invalid = str(self.different_connect_way(invalid_reporter_ids_link,pastDoName2)
fixed_a = str(self.different_connect_way(fixed_a_month_ids_link,pastDoName2)
duplicate = str(self.different_connect_way(duplicate_reporter_fixed_ids_link,pastDoName2)
duplicate_not = str(self.different_connect_way(duplicate_reporter_not_fixed_ids_link,pastDoName2)
在第5行的 invalid 报错。删掉这行下一行 fixed_a 就会报错
xx上的错误是:
Encountered "invalid" at line 156, column 13. Was expecting one of: "(" ... ")" ... "[" ... "," ... "." ... "+" ... "-" ... "*" ... "/" ... "//" ... "<<" ... ">>" ... "%" ... "^" ... "|" ... "&" ... ">" ... "<" ... "==" ... "<=" ... ">=" ... "<>" ... "!=" ... "or" ... "and" ... "not" ... "is" ... "in" ... "if" ... "for" ... "," ...
这个是什么意思啊?为什么突然写着写着就报错了,上面的一样为什么就不会报错?
导致整个工程启动都没反应。。。。求解? 展开
1个回答
展开全部
assigned = str(self.different_connect_way(new_assignee_assigned_ids_link,pastDoName2))
assignee_assigned = str(self.different_connect_way(new_assginee_reporter_ids_link,pastDoName2))
need_info = str(self.different_connect_way(need_info_reporter_ids_link,pastDoName2))
wontfix = str(self.different_connect_way(wontfix_reporter_ids_link,pastDoName2)
# 从wontfix就开始少),自己检查
invalid = str(self.different_connect_way(invalid_reporter_ids_link,pastDoName2)
fixed_a = str(self.different_connect_way(fixed_a_month_ids_link,pastDoName2)
duplicate = str(self.different_connect_way(duplicate_reporter_fixed_ids_link,pastDoName2)
duplicate_not = str(self.different_connect_way(duplicate_reporter_not_fixed_ids_link,pastDoName2)
追问
少一行就错下一行,除非把从assigned到duplicate_not全部删除。且我没删除的时候下面引用的参数不会报错,现在也出红线说未定义的。
追答
删掉代码,重新输入,不要混入中文的括号等
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询