Skip to content
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

Merged
merged 6 commits into from
Oct 6, 2023
Merged

032201117 - work1 #21

merged 6 commits into from
Oct 6, 2023

Conversation

RunForTime2023
Copy link
Contributor

No description provided.

@RunForTime2023
Copy link
Contributor Author

没有人来审核吗

@linrongda
Copy link
Collaborator

?指出的问题先改啊!

@RunForTime2023
Copy link
Contributor Author

可是之前并没有人告诉我哪里有问题啊。。。

@linrongda
Copy link
Collaborator

上面不是跟你说了吗?

@RunForTime2023
Copy link
Contributor Author

@linrongda
Copy link
Collaborator

image

@RunForTime2023
Copy link
Contributor Author

https://github.com/RunForTime2023/1/blob/main/%E6%8D%95%E8%8E%B7.PNG
这个图片是我刚截的图,里面看不到你之前的评论
(我不会在评论区上传图片,见谅)

Comment on lines 13 to 14
t=Test();
t();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

装饰器用法不对哦

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment on lines 18 to 62
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()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

想想有没有优化方法,循环什么的

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@linrongda
Copy link
Collaborator

好吧,我的问题。。。抱歉。。。

Copy link
Collaborator

@linrongda linrongda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@linrongda linrongda merged commit efee37f into west2-online-reserve:main Oct 6, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants