20. (A)下列Python 語言的片段,輪出結果為何?(A) 40(B) 出錯(C) 無輸出(D) 2
def func(num):
num *= 2
x = 20
func(x)
print(x) 原來題目這樣是直接輸出 20
配合答案如下
return num
print(func(x))