Skip to content

Commit

Permalink
修正1.4.4.py错误,书籍29页
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyeboy committed Jun 20, 2017
1 parent 3606810 commit 0813351
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
##### 近期将会把代码向Py3进行兼容,如果书中有什么疑问,错字,描述不清楚的地方,希望大家在github中提问。接下来我也会对书中可能出现的错误在此进行纠正。谢谢大家的支持。

##### 最后友情提示:书的前言部分一定要看完。
### 书或者代码中的问题会在 [勘误表](勘误表.md) 中修正,敬请查看。

2 changes: 1 addition & 1 deletion ch01/1.4.4.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Queuemanager(BaseManager):
result=manager.get_result_queue()
#实现第六步:添加任务
for url in ["ImageUrl_"+i for i in range(10)]:
for url in ["ImageUrl_"+str(i) for i in range(10)]:
print 'put task %s ...' %url
task.put(url)
#获取返回结果
Expand Down
9 changes: 9 additions & 0 deletions 勘误表.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#### 一. 1.4.4.py中代码29行出现问题,对应书籍29页
原因: i 没有使用str强转类型
<br>
修改如下:
```python
for url in ["ImageUrl_"+str(i) for i in range(10)]:
```
感谢@jsqlzy

0 comments on commit 0813351

Please sign in to comment.