直接修改不行吗,新手。。。
def firstCharUpper(s):
s[:1].upper()
return s
print firstCharUpper('hello')
print firstCharUpper('sunday')
print firstCharUpper('september')
def firstCharUpper(s):
s[:1].upper()
return s
print firstCharUpper('hello')
print firstCharUpper('sunday')
print firstCharUpper('september')
2018-07-04
举报