Skip to content

Commit

Permalink
add model
Browse files Browse the repository at this point in the history
  • Loading branch information
liukai234 committed May 23, 2020
1 parent 6c95d59 commit 02d3f6e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 24 deletions.
19 changes: 0 additions & 19 deletions 圆圆的py/creat_input.cpp

This file was deleted.

19 changes: 19 additions & 0 deletions 圆圆的py/model.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
'''
@Description:
@LastEditors: liukai
@Date: 2020-04-24 19:40:51
@LastEditTime: 2020-05-08 20:19:57
@FilePath: /pyFile/test.py
'''
# x = map (lambda x: x * x if x % 2 == 0 else 0 , range(10))
# print([y for y in x])

if __name__ == "__main__":
list = []
for i in range(10):
list.append(int(input()))
list.sort(reverse=True)
print(list[0:1])

def test():
print("Hello python")
7 changes: 2 additions & 5 deletions 圆圆的py/模块和函数.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@FilePath: /pyFile/模块和函数.py
'''

from 完数 import call # 模块导入,如果模块中有主函数,会自动执行模块
from model import test # 模块导入,如果模块中有主函数,会自动执行模块
import random # 随机数
sum = 0
answer = random.randint(1, 100)
Expand All @@ -27,7 +27,4 @@ def fac(a = 1, b = 10):
# 从模块'完数'中导入call函数
if __name__ == "__main__":
fac(5) # 带有默认参数的函数
n = 100
for ite in range(1, n + 1, 1):
if call(ite) == True:
print(ite)
test()

0 comments on commit 02d3f6e

Please sign in to comment.