序列索引不是具有__index__的int,slice或instance

这是我的代码,错误在标题上请帮助

import numpy as np
np.random.seed(3163233361)
secret = '3kdovjdkejazzke8ygth3mdovjokelameks83hnhiknovedkejamzksg31chBkdovjdkejaozksn3gcy3edovjdkejamzkc83gch'
secret = str(secret)
for i in range(21):
    index = np.random.randint(100)
    print(secret[index],end='')
评论