ChatCrawlersearch across public Telegram Open the app
P

Python 中文交流群

snapshot for April 2025
April 2025 ×
30 April 2025
X
搞个 default_factory=datetime.now 就行
Z
我不知道这跟高级语言有什么关系,py 也是高级语言
Z
想起来 pycharm 会提醒不建议这么做,pycharm 真的能帮助新手养成好习惯
X
因为 Python 是从上往下执行的,只不过函数体内的不会立即执行 但是函数参数不属于函数体内,所以会被立即执行
Z
但是很啰嗦,所以可以考虑包一个 descriptor,让魔法来解决吧
其实可以 now = now or time.time() 就不罗嗦了
X
python 想方便方法多了去了
写久了C#,都忘记这种语法了
I
None or time.time()
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog