我正在使用函数 Argmax 来获取字符串数组中最大大小的字符串,当字符串包含单个字符的重复时,结果会变得很奇怪。
例如:
x = ["ABC", "AAAA"]
argmax(x) # 1
# The return of argmax is 1, is that correct ?
x = ["ABC", "AAAABBBBCCCCDDDD"]
argmax(x) # = 1
x = ["ABC", "AAAABBBBCCCCDDDD", "ABCD"]
argmax(x) # = 3