for i in range(0,100): print("Item"{0}.format(i))

wx_l7pojh4b Python语言基本语法 最后由 上海小胖 于2016年12月10日回复

  • 1 回答
  • 862 浏览

C:UsersAdministrator.2013-20160407UVAppDataLocalProgramsPythonPython36python.exe C:/Users/Administrator.2013-20160407UV/PycharmProjects/untitled/var.py

  File "C:/Users/Administrator.2013-20160407UV/PycharmProjects/untitled/var.py", line 2

    print("Item"{0}.format(i))

                ^

SyntaxError: invalid syntax

Process finished with exit code 1