哪里出错了
# Enter a code s = 1 num = 0 for s <= 100: num = num+1 s = s*num; print(s)
各位大佬们救救蒟蒻吧!每次都编译出错,错误信息:
运行失败
File "index.py", line 4 for sum <= 100: ^ SyntaxError: invalid syntax
说是无效的语法,查了半天了不知道怎么错的QAQ
# Enter a code s = 1 num = 0 for s <= 100: num = num+1 s = s*num; print(s)
各位大佬们救救蒟蒻吧!每次都编译出错,错误信息:
File "index.py", line 4 for sum <= 100: ^ SyntaxError: invalid syntax
说是无效的语法,查了半天了不知道怎么错的QAQ
2020-10-04
举报