Python 空数组 Python array 用法 直接 result=[] for x in range(0,N): temp=beta(b,n) print temp if temp >= n: result.append("Yes") #直接append else: result.append("No") #直接append return result