我想要打包它 #143647
Replies: 2 comments
-
Well, maybe you should learn markdown first. Your code format was messy. 也许,你应该先学习一下 markdown?你的代码的格式掺成了面条。 For your question: I do not know about packaging python script, but you can try to use pyinstaller, my senior schoolfellow has developed a python application and he use pyinstaller, it could work without python env installed. 对于你的问题:我对python应用的打包了解并不多,不过我推荐使用 pyinstaller。我的学长曾经使用 pyinstaller 打包过一个应用程序,它可以在没有预安装 python 的环境下运行。 PS: Seems you are Chinese, but your language is pretty strange. It just like translationese. I'd recommend you to use English title in English communities, not everyone could know kanji in these communities. Besides, do not send duplicated content. PS: 看你的 profile 似乎是中国人?但是你的中文看上去有点怪,有那么亿点点像翻译腔。我推荐在英文社区中使用英文标题,因为这个社区里并不是所有人都能看懂汉字。此外,不要发送重复内容。 |
Beta Was this translation helpful? Give feedback.
-
Hi @King-XVX , thanks for participating! We take our Code of Conduct very seriously and want to help ensure that everyone has a good experience free of antagonism and harassment. Unfortunately, we don’t currently have moderators for languages other than English. Until that changes, we need to ask that everyone use English here in the GitHub Community when posting. We’ll be locking any posts in languages other than English for now, including this one. |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
打包它
import pygame
import turtle as t
pygame.init()
screen = pygame.display.set_mode((750, 750))
zuobianyuan = 25
youbianyuan = 725
dingbubianyuan = 25
dibubianyuan = 25
kuan = 50
gaodu = 50
m = [0]*16
for i in range(16):
m[i] = [0]*16
player = 1
winner = 0
running = True
def check(row, col):
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
elif event.type == pygame.MOUSEBUTTONDOWN:
x, y = pygame.mouse.get_pos()
col = round((x - 25)/50)
row = round((y - 25)/50)
if m[row][col] == 0:
print(row, col)
竖线
横线
pygame.quit()
这是一段我闲暇时间制作的游戏,我想要打包它发给我的同学,但是我用的auto-py-to-exe无法打包它,谁可以帮助我。哦!它要是不去翻译那些变量该多好呀。
This is a game I made in my spare time, I want to package it and send it to my classmates, but the auto-py-to-exe I used can't package it, who can help me? Ouch! If only it didn't have to translate those variables.
Beta Was this translation helpful? Give feedback.
All reactions