Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5001494
  • 博文数量: 921
  • 博客积分: 16037
  • 博客等级: 上将
  • 技术积分: 8469
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-05 02:08
文章分类

全部博文(921)

文章存档

2020年(1)

2019年(3)

2018年(3)

2017年(6)

2016年(47)

2015年(72)

2014年(25)

2013年(72)

2012年(125)

2011年(182)

2010年(42)

2009年(14)

2008年(85)

2007年(89)

2006年(155)

发布时间:2016-09-06 12:38:31

>>> s1 = 'Hello,%(p)s %(v)d.'>>> d1 = {'p' : 'Python', 'v' : 3000}>>> s1 % d1'Hello,Python 3000.......【阅读全文】

阅读(1700) | 评论(0) | 转发(0)

发布时间:2016-09-04 13:57:12

parse tmx(tile map xml) file跟twisted没必然关系,只是最近在制作一个小手游来练习twisted框架使用,而这个游戏有用到瓦片地图;client端2dx自带tmx地图的解析和加载,server端需要自己实现。tmx format: https://github.com/bjorn/tiled/wiki/TMX-Map-Format tmxlib(PyPI): http://pytmxli.........【阅读全文】

阅读(17987) | 评论(0) | 转发(1)

发布时间:2016-09-04 13:09:05

Twisted是基于异步模式的开发框架,因而利用Twisted进行非阻塞编程自然也是必会的用法,下面我们就来一起看一下使用Python的Twisted框架编写非阻塞程序的代码示例:# For years we thought this was all there was... We kept hiring more # developers, more managers and buying servers. .........【阅读全文】

阅读(1393) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册