##language:zh #pragma section-numbers off ##含有章节索引导航的 ZPyUG 文章通用模板 <> ## 默许导航,请保留 ||<>||[[ZqSharing/OpenClipart|ZQ CC 作品]]|| = Python脚本直解! = * 来源: [[http://bit.ly/b1JO1S|"这个图太棒了,有编程基础的人一下子就了解 Python 的用法了。真正的 30 分钟上手。"]]^Buzz by^[[http://www.google.com/profiles/lanphaday#buzz 赖勇浩]] ##startInc == 草译 == ||<^>{{attachment:coffeeghost-q-in-py.png}}||<^>{{attachment:120417-coffeeghost-q-in-py.png}}|| === 绘制 === * 使用Inkscape 绘制: * ^101003初版^ [[attachment:coffeeghost-q-in-py.svg]] * ^120417weibo暴鏪修訂^ [[attachment:120417-coffeeghost-q-in-py.svg]] ~ http://weibo.com/1161766813/yf12ZnfZq * gastlygem 重新设计的片段代码: https://bitbucket.org/gastlygem/documents/src/e4749bcf2e73/sample.py * 字体参考: [[http://www.2maomao.com/blog/best-programmer-fonts/|程序员最喜欢用的编程字体 ]] * [[http://floss.zoomquiet.org/data/20070513181059/index.html|常见黑体显示效果对比 - Nicky's blog]] * 所以,俺E文使用 `Monaco ` * 中文使用: [[http://www.verycd.com/topics/38307/|《linux字体》(VeraSansYuanTi for Linux)_VeryCD电驴下载]] * [[http://floss.zoomquiet.org/data/20060726161233/index.html|如何使用圆体来美化,支持中文粗体和斜体? — Ubuntu中文]] * 脚本[[attachment:coffeeghost-q-in-py.py]]实际运行情景: {{{ $ python coffeeghost-q-in-py.py Hello World! 这是Alice'的问候. 这是Bob'的问候. 5 加 10 等于 15 这个 ========== 这将直接执行/home/zoomq/workspace/zDesign/ZqStudio/101030-coffeehost-q-in-py 俺就爱整只:苹果 俺就爱整只:杏子 俺就爱整只:李子 俺就爱整只:梨 数到10 0 1 2 3 4 5 6 7 8 9 }}} ##endInc ---- '''反馈''' 创建 by -- ZoomQuiet [<>]