ChinaUnix.net
相关文章推荐:

加密python代码

目前用的python+django 做的个WEB项目 , 服务器是托管在外地机房的, 因为是公司项目, 担心服务器上的代码被人拷贝 , 想请教下python写的代码能否做加密处理 , 避免被人拷贝 ; 谢谢 ;

by cristy_cn - Python - 2008-10-26 17:24:32 阅读(5949) 回复(2)

相关讨论

如题,当我双击硬盘时,会让我输入密码,成功后才能进去硬盘,否则继续尝试输入,关键是怎么实现双击硬盘后就可以运行python并阻止进入硬盘,密码对了之后有可以正常使用!

by wenerban - Python - 2008-11-14 16:08:35 阅读(1933) 回复(1)

一点贡献 跟着大家混了这么久了 是别人的 入门的下载去看看吧

by aol365 - Python - 2012-12-17 12:36:12 阅读(7663) 回复(10)

get system platform [color="#800080"]>>> os.name [color="#800080"]'posix' [color="#800080"]>>> sys.platform [color="#800080"]'linux2' [color="#800080"]>>> get HOME path [color="#800080"]>>> os.environ['HOME'] [color="#800080"]'/home/rui' [color="#800080"]>>> os.system('echo $HOME') [color="#800080"]/home/rui [color="#800080"]0 [color="#800080"]>>> get command line [color="#80...

by rleon - Python文档中心 - 2008-06-19 20:43:42 阅读(1543) 回复(0)

名单筛选: #两个乒乓球队进行比赛,各出三人。甲队为a,b,c三人,乙队为x,y,z三人。 #已抽签决定比赛名单。有人向队员打听比赛的名单, #a说他不和x比,c说他不和x,z比,请编程序找出三队赛手的名单。 list=["x","y","z"] for i in list: for j in list: if i!=j: for k in list: if i!=k and j!=k: if i!="x" and k!="x" and k!="z": print ...

by nicki0923 - Python文档中心 - 2006-04-11 18:10:21 阅读(1301) 回复(0)

1. #一球从100米高度自由落下,每次落地后反跳回原高度的一半; #再落下,求它在第10次落地时,共经过多少米?第10次反弹多高? s=100 x=1 i=100 while x!=10: i=i*0.5 s=s+i*2 x+=1 print "the total of distance is %3.3f\n"%(s) print "the tenth distance is %1.3f"%(i*0.5) 2. #有一分数序列:2/1,3/2,5/3,8/5,13/8,21/13... #求出这个数列的前20项之和 s,a,b=0.0,2.0,1.0 #赋值为带小数部分是为了识...

by nicki0923 - Python文档中心 - 2006-04-11 17:57:41 阅读(1257) 回复(0)

数字组合: #题目:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? x=0 for i in range(1,5): for j in range(1,5): for k in range(1,5): print i*100+j*10+k, x=x+1 print "\nTotal:",x 分解质因数: #题目:将一个正整数分解质因数。 #例如:输入90,打印出90=2*3*3*5 n=input('Input number:') def func(n): i=2 a=n while i func(n) 解析:其中...

by nicki0923 - Python文档中心 - 2006-04-10 20:13:54 阅读(1471) 回复(0)

在使用Vim读代码时,用 gg=VG 重排代码很有用。可是不知道为甚对python代码,重排出错。需要设置什么,还是需要插件? 以以下代码为例: [code]# wordfreq.py import string def compareItems((w1,c1), (w2,c2)): if c1 > c2: return - 1 elif c1 == c2: return cmp(w1, w2) else: return 1 def main(): print "This program analyzes word frequency in a file" print "and prints a report on the n most frequent words.\n...

by nickleeh - Python - 2008-11-01 21:48:11 阅读(2226) 回复(4)
by 大大狗 - Python - 2014-07-11 15:27:45 阅读(8746) 回复(17)

localhost:~$ su - Password: [enter your root password] localhost:~# wget http://www.python.org/ftp/python/2.3/python-2.3.tgz Resolving www.python.org... done. Connecting to www.python.org[194.109.137.226]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 8,436,880 [application/x-tar] ... localhost:~# tar xfz python-2.3.tgz localhost:~# cd python-2.3 localhost:~/python-2.3# ./...

by keer2345 - Python文档中心 - 2006-12-27 19:33:47 阅读(1050) 回复(0)
by hhf3498 - Python - 2012-06-15 01:28:08 阅读(2168) 回复(1)