for i in range(1,10): for j in range(1,i+1): print
(" ".join(["%d*%d=%d" %(j,i,i*j)]))[root@miller qinbin]# python test.py
1*1=11*2=2 2*2=41*3=3 2...
分类:
编程语言 时间:
2014-05-26 20:34:16
阅读次数:
388
1
安装python安装python-2.7.6.msi默认在c盘设置环境变量,path后追加c:/python27。可以在命令行直接认识命令python2
安装pyqtPyQt4-4.10-gpl-Py2.7-Qt4.8.4-x32.exe,会自动寻找python路径,并装在python安装目录下...
分类:
其他好文 时间:
2014-05-26 16:21:18
阅读次数:
245
sqlyog中文乱码:Eclipse的文本编码与MySQL数据库字符编码不一致导致。修改Eclipse设置,Window->Preferences->General->Workspace,找到Text
file encoding,选择Other,修改为UTF-8。MySQL要支持完整的中文字符集,应...
分类:
数据库 时间:
2014-05-26 16:13:42
阅读次数:
327
依次下载 Python、Django(并安装好)、JAVA、Eclipse、Eclipse
中文语言包(http://www.eclipse.org/babel/downloads.php)、PyDev(http://sourceforge.net/projects/pydev/)。
Ecli...
分类:
编程语言 时间:
2014-05-26 15:49:16
阅读次数:
283
HttpWebRequest request; HttpWebResponse
response; ASCIIEncoding encoding = new ASCIIEncoding(); request = WebRequest...
分类:
Web程序 时间:
2014-05-26 15:49:01
阅读次数:
234
转载自:http://www.ruanyifeng.com/blog/2010/02/url_encoding.html与http://www.ruanyifeng.com/blog/2007/10/ascii_unicode_and_utf-8.html一、问题的由来URL就是网址,只要上网,就一...
分类:
其他好文 时间:
2014-05-26 15:46:53
阅读次数:
309
我们老大给了我三本书,让我学习下perl,昨天看了一天,今天给整理了下,两天的成果展现,没有什么脚本的基础,之前也就是看过python一点点,没用过!还有一些没有测试过,没什么时间了,还得再看看最重要的模式匹配----先上一部分。想想perl毕竟是一门语言,没有实战,还是不行!所以继续努力哦。。。。...
分类:
其他好文 时间:
2014-05-26 15:39:02
阅读次数:
896
模块的搜索路径:When a module namedspamis imported, the
interpreter searches for a file namedspam.pyin the current directory, and then
in the list of director...
分类:
编程语言 时间:
2014-05-26 15:09:11
阅读次数:
367
原题地址:https://oj.leetcode.com/problems/recover-binary-search-tree/题意:Two
elements of a binary search tree (BST) are swapped by mistake.Recover the
tree...
分类:
编程语言 时间:
2014-05-26 13:25:43
阅读次数:
261
一直按网上的方法:1.先安装apt-get install
zlib1g-dev2.重新安装python(3.3):即是./configure 再make再make
install始终没有解决掉问题!最后发现,还需要再链接一次:#ln -s /usr/local/python3.3/bin/pyth...
分类:
编程语言 时间:
2014-05-26 12:35:01
阅读次数:
298