题目内容 (请给出正确答案)
运行代码,打印结果为()
[单选]

运行代码,打印结果为()

A、s='hello world'

B、print(s.find('w'))

C、5

D、6

E、7

F、8

查看答案
更多“运行代码,打印结果为()…”相关的问题
第1题
Python中,运行下面的代码,最终显示结果为()。print("hello","world")

A、hello world

B、hello

C、world

D、helloworld

点击查看答案
第2题
写出下面代码的执行结果。
print("Hello, World!");
def createList():
list = []
for i in range(5):
list.append(i)
return list
list=createList()
print(list)

点击查看答案
第3题
下列程序运行的结果是()

A、s = 'hello'

B、print(s+'world')

C、A sworld

D、B helloworld

E、C hello

F、D world

点击查看答案
第4题
下列代码输出的结果是什么:a = 'hello,it's donghuangtaiyi'print()

A、hello,it's donghuangtaiyi

B、程序报错

C、hello,it

D、s donghuangtaiyi

点击查看答案
第5题
下面代码中, print( )输出值的数量为()。
str1 = 'Hello!'
str2 = 'World!'
print(str1, str2)

A、1个

B、2个

C、3个

D、4个

点击查看答案
第6题
var1 = 'Hello World!'print ("已更新字符串 : ", var1【:6】 + 'Runoob!')请选出程序运行的结果()

A、程序有语法错误

B、已更新字符串 : Hello Runoob

C、已更新字符串 : Runoob

D、已更新字符串 : Hello

点击查看答案
第7题
编译和运行以下代码的结果为:public class MyMain{public static void main(String argv){System.out.println("Hello cruel world");}}
A.编译错误;
B.运行输出 "Hello cruel world";
C.编译无错,但运行时指示没有定义构造方法。
D.编译无错,但运行时指示没有正确定义main方法。

请帮忙给出正确答案和分析,谢谢!
点击查看答案
第8题
运行如下代码()

A、print('今天是%d月%d日,星期%s,天气%s'%(3,25,'三','晴好'))

B、运行结果为今天是3月25日,星期三,天气晴好

点击查看答案
第9题
给出如下代码给出如下代码:TempStr = “Hello World”以下选项中可以输出“World”子串的是()

A、print(TempStr[–5: –1])

B、print(TempStr[–5:0])

C、print(TempStr[–4: –1])print(TempStr[–4: –1])

D、print(TempStr[–5:])

点击查看答案
第10题
我们在使用Python编程时,如果希望在Python Shell中显示结果"hello,world!",那么我们应该是选择以下()命令

A、print(hello,world!)

B、print("hello,world")

C、print("hello,world!")

D、input(hello,world)

点击查看答案
发送账号至手机
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
搜题
如果结果不匹配,请 联系老师 获取答案
搜索
如果结果不匹配,请 联系老师 获取答案