基础操作第5题的代码还可以这样写:
import random
brandlist=['华为','苹果','洛基亚','OPPO','小米']
rendom.seed(0)
name=random.choice(brandlist)
print(name)