Python 小案例 随机点名
程序员文章站
2022-10-10 21:19:40
#coding=utf-8
import random
names=['刘一','陈二','张三','李四'...
#coding=utf-8 import random names=['刘一','陈二','张三','李四','王五','赵六','孙七','周八','吴九','郑十'] index= random.randint(0,len(names)-1) print names[index]