码迷,mamicode.com
首页 >  
搜索关键字:built-in functions    ( 2913个结果
Python 中有关中文编码解码先关
简单记录几点,以备后忘:1、python中的默认编码方式为asciiIn[1]:importsys In[2]:sys.getdefaultencoding() Out[2]:‘ascii‘2、设置python中的默认编码方式In[1]:importsys In[2]:reload(sys) <module‘sys‘(built-in)> In[3]:sys.setdefaultencoding(‘utf-8‘) In[4]:sys..
分类:编程语言   时间:2015-05-31 06:56:14    阅读次数:147
Python 中的 socket 模块
本文参考PYTHON网络编程第一章importsockethelp(socket)Functions:socket()--createanewsocketobjectsocketpair()--createapairofnewsocketobjects[*]fromfd()--createasocketobjectfromanopenfiledescriptor[*]gethostname()--returnthecurrenthostnamegethostbyname()--mapah..
分类:编程语言   时间:2015-05-30 18:24:56    阅读次数:171
MYSQL GROUP BY Optimization
GROUP BY Optimization 常规的匹配group by(分组)操作子句是扫整表并且创建包含连续的分组行的临时表, 利用临时表得到group数据,运用appregate functions(聚合函数)(有的话)。有些情况下,MYSQL 可能更好的通过使用Index access来避免....
分类:数据库   时间:2015-05-29 11:36:24    阅读次数:150
Sending Javascript Functions Over JSON
有时需要通过json 传送函数,但是php的json_encode会带上引号。下面是解决方案:http://solutoire.com/2008/06/12/sending-javascript-functions-over-json/PHP:// Our sample array$foo = ar...
分类:编程语言   时间:2015-05-28 15:46:26    阅读次数:194
LAMP第三部分php,mysql配置
php配置1. 配置disable_functiondisable_functions = eval,assert,popen,passthru,escapeshellarg,escapeshellcmd,passthru,exec,system,chroot,scandir,chgrp,chown...
分类:数据库   时间:2015-05-26 15:36:33    阅读次数:148
Openwrt /lib/functions/procd.sh脚本
Openwrt /lib/functions/procd.sh脚本是在/sbin/procd进程启动后,将会对hotplug实现进行监听,当有hotplug的event时,将会使用hotplug.json,执行/etc/hotplug.d/下与event对应的脚本文件[root@PandoraBox:/lib/functions]#cat /lib/functions/procd.sh # pro...
分类:其他好文   时间:2015-05-25 18:41:28    阅读次数:2238
Apache MRQL——Apache又一开源孵化利器
MRQL is a query processing and optimization system for large-scale, distributed data analysis, built on top of Apache Hadoop, Hama, Spark, and Flink....
分类:Web程序   时间:2015-05-25 16:47:38    阅读次数:176
iOS Programming UISplitViewController
iOS Programming UISplitViewController The iPad, on the other hand, has plenty of screen space to present both views using a built-in class called UISp...
分类:移动开发   时间:2015-05-25 14:21:16    阅读次数:232
sorted函数
我们需要对List、Dict进行排序,Python提供了两个方法对给定的List L进行排序,方法1.用List的成员函数sort进行排序,在本地进行排序,不返回副本方法2.用built-in函数sorted进行排序(从2.4开始),返回副本,原始输入不变----------------------...
分类:其他好文   时间:2015-05-25 07:21:56    阅读次数:132
2.7全部内置函数(来自文档)
Built-in Functionsabs()divmod()input()open()staticmethod()all()enumerate()int()ord()str()any()eval()isinstance()pow()sum()basestring()execfile()i...
分类:其他好文   时间:2015-05-24 17:03:13    阅读次数:136
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!