ChatCrawlersearch across public Telegram Open the app
P

Python 中文交流群

сообщение · 2025-04-30 09:12 UTC
l1 = [1, 2, 3] def test(a = l1): print(a) test() l1.append(4) test() 但这种情况两次输出就不一样,因为默认参数指向的是可变对象l1,而不是固定的列表

Вся лента · оригинал в Telegram

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