设 str = 'python' ,想把字符串的第一个字母大写,其他字母还是小写,正确 的选项是:

A、print(str[0]upper()+str[1:])
B、print(str[1]upper()+str[-1:1])
C、print(str[0]upper()+str[1:-1])
D、print(str[1]upper()+str[2:])
查看答案
正确答案:

A

答案解析:

暂无解析

上一题
你可能感兴趣的试题

Writing:

Astatementgoesthat“onlythroughmistakescantherebediscoveryorprogress”.Towhatdegreedoyouagreewiththisstatement?Writeanessayofabout400words.

Inthefirstpartofyouressayyoushouldstateclearlyyourmainargument,andinthesecondpartyoushouldsupportyourargumentwithappropriatedetails.Inthelastpartyoushouldbringwhatyouhavewrittentoanaturalconclusionormakeasummary.

Youshouldsupplyanappropriatetitleforyouressay.

Markswillbeawardedforcontent,organization,grammarandappropriateness.Failuretofollowtheaboveinstructionsmayresultinalossofmarks.

Someconceptsmaybedifficulttograspchieflybecausetheymaybeunfamiliaror_____ideas,opinionswhichwealreadyhold.

A、inaccordancewith
B、inconflictwith
C、infavorof
D、inresponseto

I’veneverbeenoutofChina___________.Whataboutyou?

A、already
B、over
C、before
D、just

Thebike____hewenttoschoolwasstolenlastweek,whichmadehimfeelsad.

"Doesn'tElaninewanttoseethatmovie?""Yes,butshesays_______gotonight."

A、she'drathernot
B、shehadrathernot
C、shewon'trather
D、she'drathernotB)shehadrathernotC)shewon'tratherD)she'dnotrather
热门试题 更多>
相关题库更多>
公共基础
Python语言程序设计
MS Office高级应用
Web程序设计
MySQL数据库程序设计
试卷库
试题库