【发布时间】:2016-03-31 12:30:02
【问题描述】:
我是 python 和 pygame 的新手。为什么我应该将inflate() 方法分配给一个新的矩形对象:
rectObj=rectObj.inflate()
在使用inflate_ip() 时,我不需要将其分配给任何变量,但仅调用该方法实际上会更改对象:
rectObj.inflate_ip()
有什么区别,我的意思是它更像 pythonic 而不是 pygamic(我知道 inflate 做了什么)。
【问题讨论】:
标签: python python-2.7 pygame