给出如下代码:s=list(“巴老爷有八十八棵芭蕉树,来了八十八个把式要在巴老爷八十八棵芭蕉树下住。老爷拔了八十八棵芭蕉树,不让八十八个把式在八十八棵芭蕉树下住。八十八个把式烧了八十八棵芭蕉树,巴老爷在八十八棵树边哭。”)能输出字符“八”出现次数的是()。
A.print(s.index(“八”))
B.print(s.index(“八”),6)
C.print(s.index(“八”),6,len(s))
D.print(s.count(“八”))
A.print(s.index(“八”))
B.print(s.index(“八”),6)
C.print(s.index(“八”),6,len(s))
D.print(s.count(“八”))
第1题
String s = null;
s.concat("abc");
"
A.ArithmeticException
B.NullPointerException
C.IOException
D.ClassNotFoundException
第2题
A.4321
B.34
C.1234
D.12
第3题
A.4321
B.34
C.1234
D.12
第4题
Why did the girl's father ask her to make the list?
A.He wanted to keep the list at home.
B.He didn't know what the girl's enemy had said.
C.He wanted the girl to talk back.
D.He wanted her to check if she really had these weak points.
第6题
What is required to be posted in the pilothouse of a vessel?
A.Certificate of Inspection
B.Officer's licenses
C.Muster List ("Station Bill")
D.Vessel's Maneuvering Characteristics
第7题
Why did the girl's father ask her to make the list?
A.He wanted to keep the list at home.
B.He didn't know what the girl's enemy had said.
C.He wanted the girl to talk back.
D.He wanted her to check if she really had these weak points.
第8题
A.正确
B.错误
第9题
According to the writer, food is most expensive______.
A.so he always tries to hunt for bargains
B.but he likes to check advertisements in newspapers
C.but he often reads the market's "sale" papers
D.but he tries to make up a shopping list