Skip to content

Commit

Permalink
回滚版本 资源转移
Browse files Browse the repository at this point in the history
  • Loading branch information
liukai234 committed May 9, 2020
1 parent 3e21899 commit c7a6d42
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 5 deletions.
16 changes: 16 additions & 0 deletions 1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'''
@Description:
@LastEditors: liukai
@Date: 2020-05-08 21:12:49
@LastEditTime: 2020-05-08 21:26:33
@FilePath: /pyFile/1.py
'''

# r = 3
r = float(input('r = '))
print(r)

print(2 * 3.14 * r)

# print("我是一行文本", a)
# print('hello', 'python', sep=',', end='!\n') # sep是自动在元素之间补充的分隔字符
20 changes: 20 additions & 0 deletions 2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
'''
@Description:
@LastEditors: liukai
@Date: 2020-05-08 21:54:57
@LastEditTime: 2020-05-09 10:08:11
@FilePath: /pyFile/2.py
'''

# sum = 0
# for x in range(10):
# sum += x
# print(sum)

sum = 0
num = 1
while num < 10:
sum += num
num += 1
# num ++ # python不能 num ++
print(sum)
13 changes: 12 additions & 1 deletion if-else/if-else三元表达式.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@Description: 三元表达式
@LastEditors: liukai
@Date: 2020-04-21 08:56:52
@LastEditTime: 2020-04-27 09:52:47
@LastEditTime: 2020-05-08 21:35:00
@FilePath: /pyFile/if-else/if-else三元表达式.py
'''

Expand All @@ -14,6 +14,17 @@
else:
a = y

print(a)










# 上述语句可以简化为
a = x if x > y else y
print(a)
Expand Down
4 changes: 2 additions & 2 deletions if-else/分支的嵌套结构.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
@Description: 分支的嵌套结构
@LastEditors: liukai
@Date: 2020-04-19 19:44:34
@LastEditTime: 2020-04-20 09:49:26
@FilePath: /pyFile/分支的嵌套结构.py
@LastEditTime: 2020-05-08 21:40:42
@FilePath: /pyFile/if-else/分支的嵌套结构.py
'''

#!/usr/bin/python3
Expand Down
4 changes: 2 additions & 2 deletions if-else/多分支结构.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
@Description: 判断三个数的最大值和最小值
@LastEditors: liukai
@Date: 2020-04-19 19:44:07
@LastEditTime: 2020-04-20 09:49:52
@FilePath: /pyFile/多分支结构.py
@LastEditTime: 2020-05-08 21:49:54
@FilePath: /pyFile/if-else/多分支结构.py
'''
#!/usr/bin/python3
a = int(input('a = '))
Expand Down
Binary file added testDB.db
Binary file not shown.

0 comments on commit c7a6d42

Please sign in to comment.