Thread If name=="main":
6 messages · –D
If name=="main":
یعنی چی؟
D
برا منم سواله خیلی وقته 😂
D
فک کنم وختی مثلا تابع درست میکنی
def hi():
Print"hi"
hi()
hi()==(if name=='main')
D
فک کمما دقیق یادم نیس
M
یعنی مواقعی که اون فایل مستقیما اجرا شده بود
نه مواقعی که ایمپورت شده بود
D
وقتی مستقیما از خود فایل ران میکنی name_ _ برابر main_ _
ولی Import کنی اسم فایل هست
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 ·
Index limits ·
Remove a page ·
Catalog ·
Search ·
How we count