对大家有帮助的问答会被标记为“推荐”,看完课程过来浏览一下别人提的问题,会帮你学得更全面
老师为什么我利用bin(hash())输出的结果前面有负号,代码如下:
a ={} a['age'] = 20 bin(hash('age'))
运行结果如下:
老师这个就是如果要改变获取对象的css样式就是一定要加.style吗?????????????????
/Users/vect0r/PycharmProjects/KEEP/venv/bin/python /Users/vect0r/PycharmProjects/KEEP/my01.py
2021-12-09 20:37:45.411 Python[11477:894909] Warning: Expected min height of view: (<NSButton: 0x7fb24aec8140>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2021-12-09 20:37:47.222 Python[11477:894909] Warning: Expected min height of view: (<NSButton: 0x7fb21c657b10>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
送你一朵玫瑰花
Process finished with exit code 0
老师,这里说我数据不完整,但是数据库就进去了数据,很奇怪,这样会不会有问题??
老师,我是os系统,按方式1创建文件,但是远程上传出错了。请问是什么原因。
File "D:/python-files/textpad/tank.py", line 57, in StartGame
MainGame.enemy = EnemyTank(0,0,1)
UnboundLocalError: local variable 'EnemyTank' referenced before assignment
看起来似乎是EnemyTank这个类,没有被正确识别,请问是有什么问题呢