下面代码的输出结果是() str1 = "helloworld" str2 = "o" ncount = str1.count(str2) print(ncount)
A.2
B.5
C.3
D.4
A.2
B.5
C.3
D.4
第1题
A、3
B、0
C、4
D、2
第2题
A、{'k': '1', 'k1': '2', 'k2': '3', 'k3': '4'}
B、{k:1,k1:2,k2:3,k3:4}
C、{k: '1', k1: '2', k2: '3', k3: '4'}
D、{'k': 1, 'k1': 2, 'k2': 3, 'k3': 4}
第3题
A、1 2 3 4 1 2 2 1
B、1 2 3 4 3 4 4 3
C、1 2 3 4 1 2 3 4
D、1 2 3 4 1 2 4 3
第4题
A、Normal U
B、Dongbei Normal
C、Normal University
D、Dongbei Normal University
第5题
A、将字符串str3 添加到 字符串str1结尾,再添加到字符串str2 结尾;
B、将字符串str2 添加到字符串 str3 结尾,再添加到字符串 str1结尾;
C、将字符串str1 添加到字符串 str2 结尾,再添加到字符串 str3结尾;
D、将字符串str3 添加到字符串 str2 结尾,再添加到字符串 str1结尾;
第6题
A、若strcmp(str1, str2)的值为非0值,说明str1和str2相等。
B、若strcmp(str1, str2)的值为0值,说明str1和str2相等。
C、若strcmp(str1, str2)的值为负数,说明比较失败。
D、若strcmp(str1, str2)的值为正数,说明str1比str2更长。
第7题
A、‘ff’
B、‘fo’
C、‘or’
D、‘oe’
第8题
A、Sea View
B、Sea Breeze
C、Sea View Sea Breeze
D、Sea Breeze Sea View
第9题
A、if(str1[]>str2[]) printf(”yes”);
B、if(strcmp(“Wuhan”,str2)>0) printf(”yes”);
C、if(strcmp(“Wuhan”,”Changsha”)>0) printf(”yes”);
D、if(strcmp(str1,str2)>0) printf(”yes”);
第10题
A、Goodmorning
B、gOODmORNING
C、goodmorning
D、goodMORNING
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!