-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
032201117 - work1 #21
Conversation
没有人来审核吗 |
?指出的问题先改啊! |
可是之前并没有人告诉我哪里有问题啊。。。 |
上面不是跟你说了吗? |
https://github.com/RunForTime2023/1/blob/main/%E6%8D%95%E8%8E%B7.PNG |
work1/RunForTime2023/decorator.py
Outdated
t=Test(); | ||
t(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
装饰器用法不对哦
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
work1/RunForTime2023/card.py
Outdated
player1.sort(key=functools.cmp_to_key(comp)) | ||
player2.sort(key=functools.cmp_to_key(comp)) | ||
player3.sort(key=functools.cmp_to_key(comp)) | ||
others.sort(key=functools.cmp_to_key(comp)) | ||
|
||
#输出 | ||
t=open("player1.txt","w",encoding='utf-8') | ||
for x in player1: | ||
if x==53: | ||
t.write("大王 ") | ||
elif x==52: | ||
t.write("小王 ") | ||
else: | ||
t.write(numbers[x%13]+color[x//13]+' ') | ||
t.close() | ||
|
||
t=open("player2.txt","w",encoding='utf-8') | ||
for x in player2: | ||
if x==53: | ||
t.write("大王 ") | ||
elif x==52: | ||
t.write("小王 ") | ||
else: | ||
t.write(numbers[x%13]+color[x//13]+' ') | ||
t.close() | ||
|
||
t=open("player3.txt","w",encoding='utf-8') | ||
for x in player3: | ||
if x==53: | ||
t.write("大王 ") | ||
elif x==52: | ||
t.write("小王 ") | ||
else: | ||
t.write(numbers[x%13]+color[x//13]+' ') | ||
t.close() | ||
|
||
t=open("others.txt","w",encoding='utf-8') | ||
for x in others: | ||
if x==53: | ||
t.write("大王 ") | ||
elif x==52: | ||
t.write("小王 ") | ||
else: | ||
t.write(numbers[x%13]+color[x//13]+' ') | ||
t.close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
想想有没有优化方法,循环什么的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
好吧,我的问题。。。抱歉。。。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.