0
我想在python版本2.7中使用raw_input
中的%s
。我写了这样的代码:我想在python版本2.7中使用raw_input中的%s
name = raw_input("Hello, please insert your name: ")
acpass = raw_input("Hi %s please insert your account password") % name
它不起作用。出现此错误:
SyntaxError: invalid syntax
为什么?
谢谢你,对不起,我nooby问题 – user3100730
@ user3100730我们都有开始的地方。 –
@ user3100730每个人都有一次白日梦。 – John1024