def text_furface_get():
text =[memeda','wtf','hello','vaseline','fuckthatbitch','this is a new world','we are the champion']
x = N.random.randint(0,len(text) - 1)
return text[x]
报错:an integer is required (got type tuple)
本来是希望通过用这个函数获取一个字符串的,但是获取text[x]后报错说是一个元组
请问这是怎么回事?要怎么修改才能获取text里面的字符串?