摘要: python中getpass模块 在pycharm中运行下面的代码: 1 import getpass 2 name = input('请输入你的名字:') 3 passwd = getpass.getpass('请输入你的密码:') 4 print(name) 5 print(passwd) 结果 阅读全文
posted @ 2019-05-15 18:41 菜鸟++ 阅读(2048) 评论(0) 推荐(0) 编辑
摘要: Lua 生成随机数需要用到两个函数:math.randomseed(xx), math.random([n [, m]]) 1. math.randomseed(n) 接收一个整数 n 作为随机序列种子。2. math.random([n [, m]]) 有三种用法: 无参调用, 产生 (0,1) 阅读全文
posted @ 2019-05-15 16:14 菜鸟++ 阅读(9244) 评论(0) 推荐(0) 编辑