>>> ‘hi, %s, you have $%d.' % ('Cathy', 10000)
File "<stdin>", line 1
‘hi, %s, you have $%d.' % ('Cathy', 10000)
^
SyntaxError: invalid character in identifier
Ohhhh我知道了 第一个引号打成中文模式的引号了。。
Sign in to make a reply
貓科动物Meow
>>> ‘hi, %s, you have $%d.' % ('Cathy', 10000)
File "<stdin>", line 1
‘hi, %s, you have $%d.' % ('Cathy', 10000)
^
SyntaxError: invalid character in identifier