我有几个self在其中使用的实例方法,但只在几个地方使用.
self
所以我可以直接从我使用参数调用这些方法的位置传递这些值,并将方法创建为staticmethod.这会消耗更少的内存吗?
staticmethod
python memory static-methods memory-management python-3.x
memory ×1
memory-management ×1
python ×1
python-3.x ×1
static-methods ×1