Python | TypeError: ‘builtin_function_or_method’ object is not subscriptable
错误代码:
def rank(num, nums):
array = nums
rank_num = 1
while num != max(array):
del array[array.index(max[array])]
rank_num += 1
return rank_num
错误分析:
array[array.in...
原创
2019-12-05 21:52:30 ·
1896 阅读 ·
0 评论