我有以下代码行:
league = 'something'
wherel = raw_input('NEW LEAGUE - %s - insert 1 to put in good leagues, insert 2 to put in bad leagues ', % league)
其中似乎有一个sintax错误。
我确实检查了这个答案:
Python: Can you use raw_input and template strings? (%s)
它应该可以工作,但是我真的不知道出什么问题了。
答案 0 :(得分:0)
raw_input中有一个,
league = 'something'
wherel = raw_input('NEW LEAGUE - %s - insert 1 to put in good leagues, insert 2 to put in bad leagues ', % league)