python 代码学习

import random

m = ("black", "blue", "purple", "yellow", "red", "orange", "brown", "gray", "pink")
o = random.randint(0, 8)
print(m[o])

  

posted on 2022-11-19 09:41  kevin_yang123  阅读(2)  评论(0编辑  收藏  举报