小编Win*_*ing的帖子

Python 不支持的格式字符“w”

我正在创建一个 madlibs 游戏,它接受用户输入并返回故事。我使用 %s 来存储输入。当我收到此错误时,我将之前帖子中的 %s 更改为 %%s,但错误仍然存​​在

print "What is your name?"
a = raw_input()
print "Hello", a, "Lets see if you like you can do MadLibs!"
print "HEAD KNIGHT OF NI: %s \n KNIGHTS OF NI : %s \n ARTHUR : Who are you ? \n HEAD KNIGHT : We are the %s who say. %s \n RANDOM : %s \n ARTHUR : No ! Not the %s who say %s \n Head Knight: The Same! \n Bedevere: …
Run Code Online (Sandbox Code Playgroud)

python

2
推荐指数
1
解决办法
3067
查看次数

标签 统计

python ×1