运行变成这个样子
>>> def first(s):
... return s[:1].upper() + s[1:]
... print first('hello')
File "<stdin>", line 3
print first('hello')
^
SyntaxError: invalid syntax
>>>
>>> def first(s):
... return s[:1].upper() + s[1:]
... print first('hello')
File "<stdin>", line 3
print first('hello')
^
SyntaxError: invalid syntax
>>>
2019-05-15
举报