-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
snow feng
committed
Dec 24, 2023
1 parent
251f72b
commit 54c028b
Showing
6 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/python | ||
# Filename : helloworld.py | ||
|
||
import world | ||
print (world.x) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# coding=utf-8 | ||
|
||
x = '你好' | ||
|
||
print (x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# coding=utf-8 | ||
# Filename: ch5_1_1.py | ||
|
||
score = int(input("请输入一个0~100整数:")) | ||
|
||
if score >= 85: | ||
print("你真优秀") | ||
|
||
if score < 60: | ||
print("你需要加倍努力!") | ||
|
||
if (score >= 60) and (score < 85): | ||
print("你的成绩还不错!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# coding=utf-8 | ||
# Filename: ch5_1_2.py | ||
|
||
score = int(input("请输入一个0~100的整数:")) | ||
|
||
if score >= 60: | ||
if score >= 85: | ||
print("你真优秀!") | ||
else: | ||
print("你的成绩还可以!") | ||
else: | ||
print("你需要加倍努力!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
#!/usr/bin/python | ||
# Filename : helloworld.py | ||
print ('Hello World') | ||
print ('i love you mom') | ||
print ('我是你爹') | ||
print ('世界,你好') | ||
# 这是一句话 |