【 python】输出随机的字符或数字
2021-07-11 00:04
阅读:927
            
                         标签:字符   and   rand   choice   print   col   nbsp   python   pre      随机输出0-9的数字 输出结果   【 python】输出随机的字符或数字 标签:字符   and   rand   choice   print   col   nbsp   python   pre    原文地址:https://www.cnblogs.com/carriezhangyan/p/9552404.html
from random import choice
x = choice([0,1,2,3,4,5,6,7,8,9])
print x
#python first.py
2
#python first.py
3
#python first.py
2
..............
                    文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:【 python】输出随机的字符或数字
文章链接:http://soscw.com/index.php/essay/103450.html
            文章标题:【 python】输出随机的字符或数字
文章链接:http://soscw.com/index.php/essay/103450.html
评论
亲,登录后才可以留言!