??python????????????????????(1)
???????????? ???????[ 2013/12/31 15:22:22 ] ????????Python ????
????????????????????????????????????????ú???????1????????????????????????????????????? ????????????????????????????????????????????????????????????????????????????????????檔????????????????????????????? ????????diameterЭ????????????????????????????? ??Щ?????漰??????????????Щ??????????д?????????????
????Python?????????????????????????????????????????GIL?????????????? ????????????????????????????????python????????У???????????????????????? ????????????????????????????????????????????ЩС???????????ο? http://blog.csdn.net/powerccna/article/details/8020289
?????????????
???????????????diameter ???????? ????1000+????1000??????????2000???????? diameter Э???????????????????? http://sourceforge.net/projects/pyprotosim/?? ?????????????SMPP?? RADIUS?? DHCP?? LDAP?? ???????????Э????ζ???????dictionary???????????????????????????? ????????????????????????????????????????????????????????????????????50 ?????????????? SunFire 4170?? 16 ??????2.4 G
????Python????????????????
????1. ??python???????????????python????????pysco??pypy?? cython?? jython?? pysco?????python 2.7??????????в???????????C???????????pypy?? jython??????????pypy?????????????????5-10?????????Jython??????????python GIL?????????jython??????java??????????????????????Ч???????????
????2. ???????
????3. ????????????????????????Э??
????????1?? ??Python??????
?????????Python???????????????????????????????????????????κθ????????????????????pypy??Ч????????д??????????windows?????е???????linux???????????Ч???????Щ??
#!/usr/bin/env python
#coding=utf-8
import time
def check(num):
a = list(str(num))
b = a[::-1]
if a == b:
return True
return False
def test():
all = xrange(1??10**7)
for i in all:
if check(i):
if check(i**2):
i**2
if __name__ == '__main__':
start=time.time()
test()
print time.time()-start
?????python??pypy?????н??
C:Python27python.exeD:/RCC/mp/src/test.py
14.4940001965
C:pypy-2.1pypy.exeD:/RCC/mp/src/test.py
4.37800002098
?????????????pypy?????н??Ч????????????????????5????linux?????????50*5?? ??2000???????? pypy??python ????????????????Ч?????????????????
????????????????????????????????????н?????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11