python-3.7.4

How do you fix: “AttributeError: 'Boundary' object has no attribute 'rect'”?

泄露秘密 提交于 2019-12-24 10:01:05
问题 I am making a platformer game where there is a boundary in the beginning of the level, so the player can't just keep going to the left for no reason. I decided to make a class called boundary and add it into a list where the rules are you can't pass it. However, I keep getting this error: "AttributeError: 'Boundary' object has no attribute 'rect'". Can anybody fix this? Also, a better way to do this would also be accepted. Thanks! class Boundary(pygame.sprite.Sprite): def __init__(self):

module 'scipy.special' has no attribute 'sph_jnyn'

早过忘川 提交于 2019-12-11 15:53:55
问题 I have these lines of codes in python 3.7 ,But when I want to compile them, I got some errors means new version of python libraries do not recognize previous version libraries. I searched but at all python said special.sph_jnyn deprecated and removed as: https://docs.scipy.org/doc/scipy/reference/release.0.18.0.html#deprecated-features https://docs.scipy.org/doc/scipy/reference/release.1.0.0.html#backwards-incompatible-changes EDITED #2 here is the code: ... Rad = [0, {}, {}] Radd = [0, {}, {