Python的交互式解释器没有自带像LinuxShell那样的命令自动补全功能,可以编写一个模块来实现这一功能,模块源代码来自老男孩Linux培训机构的Python讲师Alex:#pythonstartupfile
importsys
importreadline
#tabcompletion
readline.parseandbind(‘tab:complete‘)
分类:
编程语言 时间:
2014-09-16 19:08:11
阅读次数:
241
报错: Failed to complete Gradle Execution Cause: error in opening zip file.原因: 安装gradle失败引起的,往往是上网需要验证或是上网权限没有开通导致的;解决: 1. 先删除原有的残余信息 rm -rf ~/.gra...
分类:
移动开发 时间:
2014-09-16 15:40:30
阅读次数:
201
实验01:Samba服务器配置实验目标:掌握samba服务器的配置实验步骤:Samba服务端:[root@svr5~]#rpm-qsambapackagesambaisnotinstalled[root@svr5~]#yumlistsamba..................Complete!Samba客户端:[root@pc205~]#yumlistsamba*Loadedplugins:product-id,refresh-packag..
分类:
其他好文 时间:
2014-09-15 03:23:18
阅读次数:
210
CSS居中一直是一个棘手的问题,偶然在网上看到一篇介绍的文章,总结的很详细。原文地址:http://css-tricks.com/centering-css-complete-guide/用了两天翻译了下,但水平实在有限。阅读地址:https://github.com/zjzhome/center-...
分类:
Web程序 时间:
2014-09-13 20:05:45
阅读次数:
191
官网链接:http://dhtmlx.com/docs/products/dhtmlxTouch/
说明
dhtmlx功能十分强大,作为免费且开源的基于html5的javascript library,dhx的功能十分强大。[It's not just a set of UI widgets, but a complete framework that
allows you to crea...
分类:
Web程序 时间:
2014-09-12 15:12:04
阅读次数:
302
最近对游戏引擎架构比较感兴趣,于是研究了下这方面的书籍。
比较推荐的两本书是:
1. Game Engine Architecture.
2. Game Code Complete.
他们全面说明了一个游戏引擎的组成部分,和每个部分所实现的基本代码。
当然我这里就我所认识的游戏引擎的组成部分跟大家说下,最后我会附加一副PDF图片,看到他你会吃惊说:噢,原理这就是游戏引擎的架构,她太漂亮...
分类:
其他好文 时间:
2014-09-11 23:52:02
阅读次数:
299
Best Time to Buy and Sell Stock
Say you have an array for which the ith element is the price of a given stock on day i.
If you were only permitted to complete at most one transaction (ie,...
分类:
其他好文 时间:
2014-09-08 09:39:06
阅读次数:
312
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:
其他好文 时间:
2014-09-07 14:41:25
阅读次数:
240
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:
其他好文 时间:
2014-09-07 13:24:55
阅读次数:
229
C++字符串完全指引之二 —— 字符串封装类原著:Michael Dunn作者:Chengjie Sun原文出处:CodeProject:The Complete Guide to C++ Strings, Part II引言 因为C语言风格的字符串容易出错且不易管理,黑客们甚至利用可能存在的缓冲....
分类:
其他好文 时间:
2014-09-07 02:11:54
阅读次数:
263