1. 首页
  2. 数据库
  3. 其它
  4. python抢红包 以及 手气最佳问题*

python抢红包 以及 手气最佳问题*

上传者: 2020-12-31 00:25:14上传 PDF文件 40.67KB 热度 21次
抢红包 以及 手气最佳问题 抢红包问题 # 输入总金额以及红包数,随机分配红包里的金额 from random import uniform money = float(input('please enter the total money: ')) people = int(input('please enter the number of people: ')) def red_packet(money,people,types='r'): result = [] if types=='u': temp = money/people real
下载地址
用户评论