我看到了同样的问题,但对我没有用。
pip install PyOpenGL.3.1.1-cp34-cp34m-win_amd64.whl
Run Code Online (Sandbox Code Playgroud)
我对Numpy也有同样的问题
pip install numpy-1.11.1+mkl-cp34-cp34m-win_amd64.whl
Run Code Online (Sandbox Code Playgroud)
然后我得到:
numpy-1.11.1 + mkl-cp34-cp34m-win_amd64.whl在此平台上不受支持。在C://Users/myUsername/pip/pip.log中存储故障调试日志
我正在使用64位和Python 3.4.0
怎么了?
假设我正在看一个nxn网格,并且在每个轴上我都有标记,比如动物.但我也有兴趣研究这些动物的群体,小组等之间的关系.因此,例如,我可能有脊椎动物和无脊椎动物,在脊椎动物中我可能有哺乳动物和爬行动物等等.(如果重要的话,我对相关矩阵特别感兴趣,实际上是通过seaborn使用热图......)
我想在matplotlib中绘制它,但沿轴有层次标记.因此,使用上面的例子,我会有像狗,猫,马,蜥蜴,鳄鱼等标签,然后第一组通过马的狗将有一个哺乳动物的标签和第二组蜥蜴,鳄鱼等将有爬行动物,这两个一起会有更多的脊椎动物标签......
我该怎么做?
我正在尝试创建一个简单的面向对象的乒乓球游戏。我有一个Player对象和一个方法 ( create_paddle)。当我创建一个实例Player并调用该create_paddle方法时,它给了我以下错误:
Traceback (most recent call last):
File "C:\Users\jerem\Documents\python_programs\pong.py", line 30, in <module>
player1.create_paddle(30, 180, 15, 120)
TypeError: create_paddle() missing 1 required positional argument: 'h'
Run Code Online (Sandbox Code Playgroud)
程序:
class Player:
def create_paddle(self, x, y, w, h):
pygame.draw.rect(surface, white, (x, y, w, h))
player1 = Player
player1.create_paddle(30, 180, 15, 120)
Run Code Online (Sandbox Code Playgroud)
我查了错误,没有其他帖子有帮助。任何帮助表示赞赏!谢谢,JC
我在一个数组中有一堆URL链接,例如,
urls = [["www.google.com"], ["www.yahoo.com"]]
#I want the urls variable to be like this below
urls = ["google.com", "www.yahoo.com"]
#I want to break up the sub-arrays in urls.
Run Code Online (Sandbox Code Playgroud)
任何帮助,将不胜感激.