Skip to content

Commit

Permalink
update something
Browse files Browse the repository at this point in the history
  • Loading branch information
liukai234 committed May 23, 2020
1 parent 02d3f6e commit a5b4346
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions 圆圆的py/dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
score = float(input("成绩:"))
info_list.append(score)
name_dict[name] = info_list

for key in name_dict:
print("姓名:%s 学号: %s 成绩: %.1f" % (key, name_dict[key][0], name_dict[key][1]))

Expand Down
2 changes: 0 additions & 2 deletions 圆圆的py/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
empty = []
print(empty)



# 创建字符串列表
str_0 = ['abc', 'bcd', 'cde']
print(str_0)
Expand Down
3 changes: 2 additions & 1 deletion 圆圆的py/max_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
max_score = 0
for ite in name_dict:
if(name_dict[ite][1] > max_score):
max_score = name_dict[ite][1]
max_index = ite

print("姓名:%s 学号: %s 成绩: %.1f" % (ite, name_dict[ite][0], name_dict[ite][1]))
print("姓名:%s 学号: %s 成绩: %.1f" % (max_index, name_dict[max_index][0], name_dict[max_index][1]))
File renamed without changes.
3 changes: 2 additions & 1 deletion 圆圆的py/模块和函数.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ def fac(a = 1, b = 10):

# 从模块'完数'中导入call函数
if __name__ == "__main__":
fac(5) # 带有默认参数的函数
fac(1, 8) # 带有默认参数的函数
fac(1, 10)
test()

0 comments on commit a5b4346

Please sign in to comment.