yybcyyb
abc
yyab
abcyy
第1题:
Python 3中,2*5**2的值为()
A.20
B.30
C.40
D.50
第2题:
表达式’abcab’.replace(’a’,’yy’)的值为()。
第3题:
( 31 )有如下类定义:
class XX{
int xx;
public:
XX ( ) : xx ( 0 ) {cout<<' A';}
XX ( int n ) : xx ( n ) {tout<<' B';}
};
Class YY:public XX{
Int yy;
public:
YY ( ) : yy ( 0 ) {cout+yy;}
YY ( int n ) : XX ( n+1 ) , yy ( n ) {cout<<yy;}
YY ( int m, int n ) : XX ( m ) , yy ( n ) {cout<<yy;}
};
下列选项中,输出结果为 A0 的语句是
A ) YY y1(0,0);
B ) YY y2(1);
C ) YY y3(0);
D ) YY y4;
第4题:
python中replace是替换方法。()
第5题:
"python"[-1]返回值为"n"。
第6题:
A.真,假
B.0,1
C.T,F
D.True,False
第7题:
Python字典中的“键”是唯一的,“值”都允许重复。
第8题:
Python字符串方法replace()对字符串进行原地修改。
此题为判断题(对,错)。
第9题:
python中,sum(range(10))的值为()
第10题:
在python中,字典中的键与值成对出现。