这样为什么不行?
def firstCharUpper(s):
return firstCharUpper(s[0])+s[1:]
print firstCharUpper('hello')
print firstCharUpper('sunday')
print firstCharUpper('september')
def firstCharUpper(s):
return firstCharUpper(s[0])+s[1:]
print firstCharUpper('hello')
print firstCharUpper('sunday')
print firstCharUpper('september')
2016-01-10
举报