def print_test(title, msg="world"): print(title, msg) print_test("hello"),输出结果为:______
查看答案
以下程序的输出结果是: ______ lcat =["狮子","猎豹","虎猫","花豹","孟加拉虎","美洲豹","雪豹"] for s in lcat: if "豹" in s: print(s,end="") continue
给出下面代码: a = "Python语言,是,脚本,语言".split(",") x = 0 while x < len(a): print(a[x],end="") x += 1 则代码的输出结果是
A. 执行代码出错
B. Python语言,是,脚本,语言
C. Python语言是脚本语言
D. 无输出
以下程序的输出结果是: chs = "|'-'|" for ch in chs: print(ch,end='')
A. 出错
B. |-|
C. "|'-'|"
D. |'-'|
import time def timmer(func): def wrapper(*args,**kwargs): start= time.time() func(*args,**kwargs) stop = time.time() print('%s'%(stop-start)) return wrapper 定义以上装饰器,该装饰器的功能为( )。
A. 显示程序执行结束时间
B. 计算程序结束时间
C. 显示程序开始时间
D. 计算程序执行时间