How to make an imported variable transparently call a function

前端 未结 0 1566
庸人自扰
庸人自扰 2020-12-04 23:08

Imagine this situation :

I have a file named settings.py that contains

from datetime import datetime
FOO = datetime.now()

Now

相关标签:
回答
  • 消灭零回复
提交回复
热议问题