kaibo 发表于 2019-3-19 10:46:46

1

xwy964046872 发表于 2019-3-24 19:49:08

hh

仓鼠二号 发表于 2019-3-27 23:07:49

本帖最后由 仓鼠二号 于 2019-3-27 23:19 编辑

这个程序老是没响应 while 循环里加入了这个就好了
for event in pygame.event.get():
   if event.type == pygame.QUIT:
          pygame.quit()


运行50000次后直接变卡了 这是为什么。

w74 发表于 2019-3-30 11:43:28

66666666666666666666666666666666666666666666

2587632842 发表于 2019-3-30 14:36:29

厉害

wy1018651314 发表于 2019-4-28 20:54:58

666666

coolischill 发表于 2019-5-4 18:04:27

666666

C'rɑごy 发表于 2019-5-5 16:39:52

666

827441240@qq.co 发表于 2019-5-8 15:05:56

学习大佬

破月霜华 发表于 2019-5-9 08:56:39

学习学习

123sfg 发表于 2019-5-9 16:49:16

666

骚强么么哒 发表于 2019-5-9 17:07:58

!学习学习顶!

qj446964853 发表于 2019-5-9 19:08:58

希望和你一起学习tensorflow

新兽py 发表于 2019-5-10 09:30:37

正好在学习机器学习,借鉴一下

骚强么么哒 发表于 2019-5-10 14:20:33

学习学习

骚强么么哒 发表于 2019-5-10 15:43:27

运行不了。。。

骚强么么哒 发表于 2019-5-10 15:45:37

ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
ImportError: numpy.core.multiarray failed to import

直接报错,但是都装了

骚强么么哒 发表于 2019-5-10 15:48:55

骚强么么哒 发表于 2019-5-10 15:45
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
ImportError: numpy.core.multiar ...

已解决,更新即可

骚强么么哒 发表于 2019-5-10 15:56:37

仓鼠二号 发表于 2019-3-27 23:07
这个程序老是没响应 while 循环里加入了这个就好了
for event in pygame.event.get():
   if event.typ ...

我跑了5000次之后,simple game的窗口未响应了,但是底下的值还在跑,~搞不懂,重新运行,模型直接清空了吗

骚强么么哒 发表于 2019-5-10 16:05:09

仓鼠二号 发表于 2019-3-27 23:07
这个程序老是没响应 while 循环里加入了这个就好了
for event in pygame.event.get():
   if event.typ ...

完美,谢谢~
页: 1 2 3 4 5 6 7 [8] 9 10
查看完整版本: python实现人工智能玩游戏(转)