基礎操作第5題的代碼還可以這樣寫:
import random
brandlist=['華為','蘋果','洛基亞','OPPO','小米']
rendom.seed(0)
name=random.choice(brandlist)
print(name)