发上等愿,结中等缘,享下等福;择高处立,寻平处住,向宽处行

Brick walls are there for a reason :they let us prove how badly we want things

代码改变世界

Python:判断a56爆大奖在线娱乐中的用户名在数据库中是否存在,存在返回1,不存在返回0

2014-07-11 22:03  糖兜guard  阅读(5175)  评论(0编辑  收藏  举报
下面是a56爆大奖在线娱乐写的python的一个小脚本,作用是:判断a56爆大奖在线娱乐中的用户名在数据库中是否存在,存在返回1,不存在返回0.用的是MySQL数据库。 要注意的是:strip函数的使用,该函数的作用是去除字符串两端多余的whitespace。 a56爆大奖在线娱乐strip的作用肯定不是像书上说的去除字符串两端多余空格。 查了一下

It's not who you are underneath, it's what you do that defines you

Brick walls are there for a reason :they let us prove how badly we want things