上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 29 下一页

2017年3月13日

Python中文转拼音代码(支持全拼和首字母缩写)

摘要: 本文的代码,从https://github.com/cleverdeng/pinyin.py升级得来,针对原文的代码,做了以下升级: 1 2 3 4 1、可以传入参数firstcode:如果为true,只取汉子的第一个拼音字母;如果为false,则会输出全部拼音; 2、修复:如果为英文字母,则直接输 阅读全文

posted @ 2017-03-13 10:45 alex.shu 阅读(10909) 评论(0) 推荐(1)

2017年3月10日

python rabittmq 使用

摘要: Reference: https://www.rabbitmq.com/tutorials/tutorial-three-python.html 1 "Hello World!" The simplest thing that doessomething Python Java Ruby PHP C 阅读全文

posted @ 2017-03-10 14:49 alex.shu 阅读(621) 评论(0) 推荐(0)

2017年3月9日

多核CPU上python多线程并行的一个假象

摘要: GIL 与 Python 线程的纠葛 GIL 是什么东西?它对我们的 python 程序会产生什么样的影响?我们先来看一个问题。运行下面这段 python 程序,CPU 占用率是多少? # 请勿在工作中模仿,危险:) def dead_loop(): while True: pass dead_lo 阅读全文

posted @ 2017-03-09 18:57 alex.shu 阅读(3861) 评论(0) 推荐(3)

今日头条算法

摘要: Reference: http://blog.csdn.net/u014114990/article/details/48165781 日头条涉及到算法:(1)今日头条服务器1000台左右,通过代码实现的爬虫功能,在其他传媒的网站和门户上抓取各种信息。如果在网站上抓取到纸媒的内容,优先从纸媒门户上抓 阅读全文

posted @ 2017-03-09 18:17 alex.shu 阅读(1396) 评论(0) 推荐(0)

2017年2月12日

Chrome调试工具developer tool技巧

摘要: 原文地址:http://www.xuanfengge.com/chrome-developer-debugging-tool-tool-tips.html Chrome的简洁、快速吸引了无数人,它的启动速度、页面解析速度都很快,同时得益于Google V8的快速,JavaScript执行速度也飞快。 阅读全文

posted @ 2017-02-12 01:23 alex.shu 阅读(1219) 评论(0) 推荐(0)

2017年2月7日

Django 缓存、信号

摘要: Reference: http://www.cnblogs.com/lianzhilei/p/6365877.html 缓存 由于Django是动态网站,所有每次请求均会去数据进行相应的操作,当程序访问量大时,耗时必然会更加明显,最简单解决方式是使用:缓存,缓存将一个某个views的返回值保存至内存 阅读全文

posted @ 2017-02-07 11:39 alex.shu 阅读(631) 评论(0) 推荐(0)

2017年1月23日

python AES 加密

摘要: pad: ZeroPadding mode: cbc #!/usr/bin/env python# -*- coding:utf-8 -*-# 这里使用pycrypto‎库# 按照方法:easy_install pycrypto‎ from Crypto.Cipher import AESimpor 阅读全文

posted @ 2017-01-23 18:22 alex.shu 阅读(8508) 评论(2) 推荐(0)

AES加解密JS和php互相处理字符

摘要: Reference: http://blog.csdn.net/carlos__z/article/details/53185082 JavaScript code? 1 2 3 4 5 6 7 8 9 10 11 text = 'T10515'; var key = '123454536f6674 阅读全文

posted @ 2017-01-23 17:18 alex.shu 阅读(2580) 评论(0) 推荐(0)

2017年1月22日

js中的extend

摘要: js中的extend 1. JS中substring与substr的区别 之前在项目中用到substring方法,因为C#中也有字符串的截取方法Substring方法,当时也没有多想就误以为这两种方法的使用时一样的。这样就直接按照在C#中使用Substring的方式,直接在js中用了substrin 阅读全文

posted @ 2017-01-22 10:36 alex.shu 阅读(2876) 评论(0) 推荐(0)

2017年1月18日

elasticsearch的python增删查改实例分析

摘要: Reference: http://bigg.top/2015/11/29/elasticsearch%E7%9A%84python%E5%A2%9E%E5%88%A0%E6%9F%A5%E6%94%B9%E5%AE%9E%E4%BE%8B%E5%88%86%E6%9E%90/ ES的部署请查看相关 阅读全文

posted @ 2017-01-18 18:35 alex.shu 阅读(1751) 评论(0) 推荐(0)

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 29 下一页

导航