为什么这样写还是小写?
def firstCharUpper(s):
s[0].upper()
return s
print firstCharUpper('hello')
print firstCharUpper('sunday')
print firstCharUpper('september')
为什么执行后还是小写呢?
def firstCharUpper(s):
s[0].upper()
return s
print firstCharUpper('hello')
print firstCharUpper('sunday')
print firstCharUpper('september')
为什么执行后还是小写呢?
2018-02-02
举报