【发布时间】:2022-09-23 02:35:38
【问题描述】:
我遇到了 PYTHON 代码的 BREAK OUTSIDE LOOP & INVALID SYNTAX ERROR
需要帮助解决问题。
问题位于第 43 行:
# taking input for every week
x = int(input(\"SalesPerson {emp} week {ii}: \".format(emp = employee , ii = i)))
# appending the sales value to the list sales record for further use
sales_record.append(x)
else:
# if no another employee exists, then break the loop
break
当我运行代码时,在第 43 行出现错误:BREAK OUTSIDE LOOP & INVALID SYNTAX ERROR
-
请修复代码格式。顺便说一句,提供的代码中不包含循环,因此没有足够的信息来提供答案。
-
您需要有关大写锁定键的帮助。它似乎坏了。
标签: python