在运行一个小脚本时,脚本从一文本文件读取数据,事实上这个文件只有一行'count:2',并取到这个2,将其转成数字。但运行,总是报错。 代码如下: 1 with open('count.txt', 'r') as file: 2 if not file.readline(): 3 pass 4 el ...
分类:
编程语言 时间:
2016-03-26 14:04:33
阅读次数:
1143
描述理想伴侣Part 1: My ideal girlfriend is .. attractive .. confident .. smart .. She's got a nice figure (身材好)and of course she's gorgeous. But she's not s
分类:
其他好文 时间:
2016-03-23 15:38:33
阅读次数:
178
功能模块 功能子模块 功能 测试结果 备注 用户 注册、登录 注册、登录、退出 手机号注册收不到验证码,无法进行注册 设置 修改用户信息 ok 用户信息页面报“ request() got an unexpected keyword argument 'json'” 修改密码 ok 设置好后,点击概
分类:
其他好文 时间:
2016-03-22 10:33:35
阅读次数:
190
Posted by Hoi Lam, Developer Advocate, Android Wear What’s a better holiday gift than great performance? You’ve got a great watch face idea -- now, yo
分类:
移动开发 时间:
2016-03-14 16:35:55
阅读次数:
337
坚持~坚持~坚持~! Have you ever been to Costa Rica? 你有没有去过哥斯达黎加? No I haven't.Have you? 没有,你去过吗? I just got back from a week in Costa Rica! 我刚去哥斯达黎加度了一周假. It
分类:
其他好文 时间:
2016-03-10 09:21:46
阅读次数:
223
“=”和“<=” 的优先级 1.( (file_got_len = recv_str(sock,buf,BUF_SIZE) ) <= 0) 2.( file_got_len = recv_str(sock,buf,BUF_SIZE) <= 0 ) 第二种情况下,当recv_str()函数成功返回发送
分类:
编程语言 时间:
2016-03-08 21:09:30
阅读次数:
178
This morning, I got a spare machine from of of the labmates. The OS is ubuntu 12.04. I could not log into the system because it is under other person'
分类:
系统相关 时间:
2016-03-04 07:06:48
阅读次数:
225
昨天上午mysql又碰到一个奇怪的问题。数据库异常终止。重启成功后过就马上崩溃,不能正常运行。查看mysql错误日志如下:InnoDB:Doingrecovery:scanneduptologsequencenumber192461222634612110321:29:24InnoDB:Startinganapplybatchoflogrecordstothedatabase...InnoDB:Progres..
分类:
数据库 时间:
2016-03-02 11:21:29
阅读次数:
324
坚持~坚持~坚持~! Right out of the gate 立刻,一出门就 I can't believe we graduated!Now we gotta go find jobs. 我身不敢相信我们毕业了!现在开始得找工作了. Did you hear Greg got an amazi
分类:
其他好文 时间:
2016-02-25 09:06:25
阅读次数:
189
#server.py import socket s=socket.socket() s.bind(('127.0.0.1',2000)) s.listen(5) while 1: cs,address=s.accept() cs.settimeout(5) print 'got cinnected
分类:
编程语言 时间:
2016-02-23 20:36:43
阅读次数:
210