Leon Ling's Blog

人的一生,总是为了追寻生命中的光,而走在漫长的路上

Advanced Regex

Tricks in Python Regular Expression

When I started to use python regex, the most commonly used are . * ? () [] \d \s and etc. However, I have sometimes met problems like I cannot partial match strings or control the groups as I needd...

Alibaba Cloud Training (Day2)

Notes on Alibaba Cloud Training

[toc] Course Content Alibaba Cloud Big Data Architechture Here I drew the structure of whole AliCloud Big Data Platform. MaxCompute provides two data import and export methods: Tunnel Ope...

What is RESTful API

什么是REST API

RESTful API is not a new concept for today’s Internet developing, but I always forget the meaning of that. So now I write it here. Foreword With the development of mobile devices and the I...

OLAP vs OLTP

联机事务处理和联机处理分析

To be briefly. OLTP (On-line Transaction Processing) is involved in the operation of a particular system. OLTP is characterized by a large number of short on-line transactions (INSERT, UPDATE, ...

Alibaba Cloud Training (Day1)

Notes on Alibaba Cloud Training

Very honor to take part in the Alibaba Cloud Big Data Certification Course. Although it’s only two days long, a lot of new concepts are given to me, like an iceberg waiting me to discover. In...

怎样解决github历史冲突的问题

How to resolve github unrelated history?

I have met a problem several times before. When we build a new repository on GitHub, the official recommended steps are Build a new empty repo on GitHub Init local git directory Make the f...

Record a trap in Python dict

Python里的坑 -- 字典

之前做项目的时候需要做python字典的初始化,所以在网上找了一些方法,没想到是有问题的,最近写作业的时候一下被坑惨了,特此一记。 具体代码如下: 1 2 li = [1,2,3,4,5] di = dict.fromkeys(li, []) 目的很简单,我想做一个以1-5为key,然后空列表为value的字典,然后以后再慢慢分别往里放内容。 可是万万没想到! 这里的[]...

怎样限制python函数的最大运行时间

How to restrict python function run time

Nowadays, I’m dealing with a NLP project, there is a step which is about python regular expression and I have a problem. When program meets texts with some formats that my regular expression ...

Python Tricks

Python 里的奇技淫巧 [持续更新]

When we do python programing, I find there are many tricks and skills to make our code more pythonic and more effectively. Here I collect them, and keep this post continuously updated. Stri...

轮询 VS Websocket vs P2[转载]

不同通信机制之间的区别

之前做项目遇到P2P相关的开发,对即时通讯中的websocket,P2P这些概念有些模糊,所以简单查了一些资料。看到某位老哥发的聊天记录,感觉很生动形象,这里记一下。 转载自: https://www.cnblogs.com/PheonixHkbxoic/p/5900918.html