网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
Python语句: s={'a',1,'b',2} print(s[b]) 其输出结果是________
A.2
B.1
C.'b'
D.语法错误
参考答案和解析
语法错误
更多 “Python语句: s={'a',1,'b',2} print(s[b]) 其输出结果是________A.2B.1C.'b'D.语法错误” 相关考题
考题
有如下程序,运行输出的结果是 ______ 。 s=0 Do s=(s+1)*(s+2) n=n+1 Loop Until s>=30 Print n; sA.0 1B.30 30C.4 30D.3 182
考题
语句:print sgn(-6^2)+Abs(-6^2)+int(-6^2)的输出结果是( )A.-36B.1C.-1D.-7252967.以下语句a=sqr(3)print format(a,####.###)的输出结果是( )A.1.732B. 0001.732C.###1.732D. 1.7320
考题
若有以下定义和语句: char*s1="12345",*s2="1234"; printf("%d\n",strlen(strcpy(s1,s2)));则输出结果是______。A.4B.5C.9D.10
考题
执行以下语句后,输出的结果是 s$=“ABCDEFGHI” Print Mid$(s$,3,4) Print Len(s$)A.ABCD 11B.CDEF 11C.EFGH 11D.HIJK 11
考题
若有以下程序段: int r=8; print("%d\n",r1): 输出结果是( )。 A.16B.8S
若有以下程序段: int r=8; print("%d\n",r1): 输出结果是( )。A.16B.8C.4D.2
考题
语句Print Sgn(-6^2)+Abs(-6^2)+Int(-6^2)的输出结果是( )。A.-36B.1C.-1S
语句Print Sgn(-6^2)+Abs(-6^2)+Int(-6^2)的输出结果是( )。A.-36B.1C.-1D.-72
考题
有如下程序: Private Sub Command1_Click() s = 0 Do s=(s+1) ( (s+2) N=N+1 Loop Until s>=10 Print N;s End Sub 运行后的输出结果是A.0 1B.30 30C.4 30D.2 12
考题
若有以下定义语句: char * sl="12345", * s2="1234"; printf("%d"n",strlen(strcpy(s1,s2))); 则输出结果是 ( )A.4B.5C.9D.10
考题
以下语句的输出结果是 a=Sqr(3) Print Format(a, "$$ # # # # . # # #")A.$1.732B.$S1.732C.1732D.$$0001.732
考题
下面程序运行后输出结果是( )。 For I=1 to 2 S=1 For j=0 to I-1 S=S+S*I Next j Print S Next IA.1 1B.0 2C.2 9D.6 9
考题
单选题s=’ilovepython’print(s[1:5])输出结果是()A
iloveB
loveC
pythonD
lovep
热门标签
最新试卷