請教我的代碼為什么打不出大寫首字母
請問各位大神 我的哪里不對
?def firstCharUpper(s): ? ?
a = s[0].upper ? ?
return str(a) + str(s[1:])
?print firstCharUpper('hello')?
?print firstCharUpper('sunday')?
?print firstCharUpper('september')
請問各位大神 我的哪里不對
?def firstCharUpper(s): ? ?
a = s[0].upper ? ?
return str(a) + str(s[1:])
?print firstCharUpper('hello')?
?print firstCharUpper('sunday')?
?print firstCharUpper('september')
2018-03-07
舉報
2018-03-07