十条指令,两种走法各要几拍
各走各的,错开一格
头一件
第二件
第三件
运行下面这段程序,填写它打印出来的结果。
STAGES = 5
def one_by_one(n):
return n * STAGES
def pipelined(n):
return n + STAGES - 1
print(str(one_by_one(10)) + "/" + str(pipelined(10)))
各走各的,错开一格
头一件
第二件
第三件
运行下面这段程序,填写它打印出来的结果。
STAGES = 5
def one_by_one(n):
return n * STAGES
def pipelined(n):
return n + STAGES - 1
print(str(one_by_one(10)) + "/" + str(pipelined(10)))
全部评论