我有一个代码块
import random as r
value = r.choice(r.randint(10, 30), r.randint(50, 100))
print (value)
为什么它给我以下错误,我应该如何解决它?
TypeError: choice() takes 2 positional arguments but 3 were given
尚方宝剑之说
陪伴而非守候
相关分类