Skip to content

Commit fe819dc

Browse files
committed
添加01Linux的README文件
1 parent 0a3f535 commit fe819dc

3 files changed

Lines changed: 107 additions & 35 deletions

File tree

.idea/workspace.xml

Lines changed: 81 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

01Linux/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# PythonAndMachineLearning [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)
2+
3+
这个仓库主要为了学习**Python和机器学习基础**,具体的文档说明将在今后逐步添加(2019-01-13)
4+
5+
> 最近更新:2019-01-27 (01Python完成)
6+
7+
---
8+
9+
<h2 id="catalog">目录</h2>
10+
11+
- [01Python基础](#python_basic)
12+
- [基本语法](#fedev)
13+
- [I/O流读取](#node_read)
14+
- [面向对象](#interview)
15+
- [飞机大战](#otherdev)
16+

03Thread/day03/basic01.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
"""
2+
queue(data, blocking=True, timeout=-1)默认为阻塞和永久不超时
3+
1- 如果超出长度,或者超时等待之后都没有获取到数据,则会**抛出异常**
4+
2- put(data, False)不等待,不阻塞,直接判断能不能放入,不能直接报错 == put_nowait(data)
5+
3- get(block=true, timeout=-1),默认就是一直等待get阻塞
6+
4- get(true, 3)阻塞3秒取不到直接异常, get(False) == get_nowait()
7+
"""
8+
import multiprocessing
9+
10+
queue = multiprocessing.Queue(3)
11+
212

313

4-
"""

0 commit comments

Comments
 (0)