我有一些代码可以不断获取鼠标位置并更新位置 . 但我遇到了一个问题:相同的代码在不同的软件中运行不同的结果 .
我的代码就像this .
在pycharm控制台中:enter image description here
在IDLE:enter image description here
在cmd中:enter image description here
只有在cmd我才能得到我想要的正确结果 .
请问谁可以告诉我为什么以及如何解决这个问题?
我有一些代码可以不断获取鼠标位置并更新位置 . 但我遇到了一个问题:相同的代码在不同的软件中运行不同的结果 .
我的代码就像this .
在pycharm控制台中:enter image description here
在IDLE:enter image description here
在cmd中:enter image description here
只有在cmd我才能得到我想要的正确结果 .
请问谁可以告诉我为什么以及如何解决这个问题?