1.文件类型类似于这样: 不过数据量比这个要更大一点. 2.对应上述数据的运行结果: import matplotlib.pyplot as plt with open('test.txt') as fob: lines=fob.readlines() #去除掉每行最后一个换行符,就可以正确统计了,我也真不知道是为什么 for i in range(len(lines)): lines[i]=lines[i].rstrip() #在这里要创建一个长度的list进行统计 #但是这个地方的lines…
[抄题]: Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i]. Solve it without division and in O(n). For example, given [1,2,3,4], return [24,12,8,…