Skip to content

Commit c2db5ed

Browse files
committed
Signed-off-by: twowater <[email protected]>
草根学Python(八) 模块与包
1 parent 1ddc92a commit c2db5ed

File tree

16 files changed

+658
-0
lines changed

16 files changed

+658
-0
lines changed

Code/Python8Code/.idea/Python8Code.iml

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

Code/Python8Code/.idea/inspectionProfiles/profiles_settings.xml

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

Code/Python8Code/.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.

Code/Python8Code/.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.

Code/Python8Code/.idea/workspace.xml

Lines changed: 574 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: UTF-8 -*-
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: UTF-8 -*-
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env python
2+
# -*- coding: UTF-8 -*-
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env python
2+
# -*- coding: UTF-8 -*-
3+
4+
if __name__ =='__main__' :
5+
print('main')
6+
else :
7+
print('not main')
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env python
2+
# -*- coding: UTF-8 -*-
3+
4+
import lname
5+
6+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: UTF-8 -*-
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: UTF-8 -*-
3+
4+
def _diamond_vip(lv):
5+
print('尊敬的钻石会员用户,您好')
6+
vip_name = 'DiamondVIP' + str(lv)
7+
return vip_name
8+
9+
10+
def _gold_vip(lv):
11+
print('尊敬的黄金会员用户,您好')
12+
vip_name = 'GoldVIP' + str(lv)
13+
return vip_name
14+
15+
16+
def vip_lv_name(lv):
17+
if lv == 1:
18+
print(_gold_vip(lv))
19+
elif lv == 2:
20+
print(_diamond_vip(lv))
21+
22+
23+
vip_lv_name(2)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env python
2+
# -*- coding: UTF-8 -*-
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env python
2+
# -*- coding: UTF-8 -*-
3+
4+
import sys
5+
6+
print(sys.path)

Code/Python8Code/com/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: UTF-8 -*-

0 commit comments

Comments
 (0)