<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>python - 分类 - 小炒肉</title><link>https://jicki.cn/categories/python/</link><description>python - 分类 - 小炒肉</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>jicki@qq.com (小炒肉)</managingEditor><webMaster>jicki@qq.com (小炒肉)</webMaster><lastBuildDate>Wed, 27 Feb 2019 00:00:00 +0000</lastBuildDate><atom:link href="https://jicki.cn/categories/python/" rel="self" type="application/rss+xml"/><item><title>Muddery 部署 配置文档</title><link>https://jicki.cn/muddery-0.3.3/</link><pubDate>Wed, 27 Feb 2019 00:00:00 +0000</pubDate><author>作者</author><guid>https://jicki.cn/muddery-0.3.3/</guid><description>Muddery 简介 程序源代码：https://github.com/muddery/muddery Muddery是一个用Python编写的在线文字游戏（</description></item><item><title>Python 学习之路</title><link>https://jicki.cn/python-learning/</link><pubDate>Thu, 01 Dec 2016 00:00:00 +0000</pubDate><author>作者</author><guid>https://jicki.cn/python-learning/</guid><description>Python 学习之路，Python 学习笔记 Python Logging 日志模块 屏幕与文件输出 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 import</description></item><item><title>Python</title><link>https://jicki.cn/my-python/</link><pubDate>Fri, 01 Jan 2016 00:00:00 +0000</pubDate><author>作者</author><guid>https://jicki.cn/my-python/</guid><description><![CDATA[随机数 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 # 一位大神写的 红包 的程序 import random dic={} lis = [&#39;KeLan&#39;,&#39;Monkey&#39;,&#39;Dexter&#39;,&#39;Superman&#39;,&#39;Iron Man&#39;,&#39;Robin&#39;] def redpacket(cash,person,index): if cash&gt;0 and person !=1: n = round(random.uniform(0.01,cash-(0.01*person)),2) dic[lis[index]] = n print(str(n).ljust(4,&#34;0&#34;)) person-=1 cash-=n index+=1 redpacket(cash,person,index) else: dic[lis[index]]=round(cash,2) print(str(cash).ljust(4,&#34;0&#34;)) redpacket(200,len(lis),0) print(dic) p]]></description></item></channel></rss>