在使用PyOpenGL的時候融虽,出現(xiàn)以下錯誤
Traceback (most recent call last):
File "viewer.py", line 80, in <module>
viewer = Viewer()
File "viewer.py", line 19, in __init__
self.init_interface()
File "viewer.py", line 31, in init_interface
glutCreateWindow('3D Modeller')
File "D:\python\lib\site-packages\OpenGL\GLUT\special.py", line 73, in glutCreateWindow
return __glutCreateWindowWithExit(title, _exitfunc)
ctypes.ArgumentError: argument 1: <class 'TypeError'>: wrong type
之后在StackOverflow上找到解決辦法
原因是Python3默認給出的是Unicode