Skip to content

Commit 0941097

Browse files
committed
demo
按章节分类的演示代码
1 parent 080825e commit 0941097

File tree

356 files changed

+114358
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

356 files changed

+114358
-0
lines changed

python_demo/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.tox
2+
*.egg-info
3+
chapter.html

python_demo/.idea/dictionaries/wilsonyin.xml

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

python_demo/.idea/encodings.xml

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

python_demo/.idea/misc.xml

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

python_demo/.idea/modules.xml

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

python_demo/.idea/timegeekbang.com.iml

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

python_demo/.idea/workspace.xml

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

python_demo/04/hello_world.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# 这是我的第一个Python程序
2+
3+
import time # 我导入了一个时间模块
4+
5+
6+
print(time.time()) #在屏幕上打印出从1970年1月1日0:00 到现在经过了多少秒
7+
8+
if 10-9 > 0:
9+
# 这行需要缩进,缩进用4个空格
10+
print('10大于9')

python_demo/04/test1.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 输出一行文字
2+
print('hello time.geerbang!')
3+

python_demo/06/network_bandwidth.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# 网络带宽计算
2+
# print(100/8)
3+
4+
bandwidth = 100
5+
ratio = 8
6+
7+
print(bandwidth/ratio)
8+
9+
bandWidth
10+
BandWidth
11+
band_width

0 commit comments

Comments
 (0)