Français
Ouvrir dans Telegram

Publication ساخت پوشه اگر نبود #پایتون

29 décembre 2025
P
PythonHost.ir | پایتون هاست
Photo
cliquez pour afficher
ساخت پوشه اگر نبود #پایتون from pathlib import Path Path('data').mkdir(exist_ok=True) print('ready') PythonHost.ir | پایتون هاست @pythonhost_ir ‌
1 · 205 ·

À proximité dans le fil

PPythonHost.ir | پایتون هاستلیست کردن فایل‌ها با glob #پایتون import glob print(glob.glob('*.py')[:10]) PythonHost.ir | پایتون هاست @pythonhost_ir ‌PPythonHost.ir | پایتون هاستفیلتر نام فایل‌ها با fnmatch #پایتون import fnmatch names=['a.py','b.txt','c.py'] print([n for n in names if fnmatch.fnmatch(n,'*.py')]) PythonHost.ir | پایتون
ce message
PPythonHost.ir | پایتون هاستحذف پوشه کامل با shutil #پایتون import shutil shutil.rmtree('data', ignore_errors=True) print('deleted') PythonHost.ir | پایتون هاست @pythonhost_ir ‌PPythonHost.ir | پایتون هاستکپی فایل با shutil #پایتون import shutil shutil.copy2('out.txt','out_copy.txt') print('copied') PythonHost.ir | پایتون هاست @pythonhost_ir ‌
PPythonHost.ir | پایتون هاستPythonHost.ir | پایتون هاست@pythonhost_ir · canal
61abonnés35portée moyenne d'une publication
Fil de la communauté Ouvrir dans Telegram

Un fil public ouvert issu de l'index de recherche ChatCrawler — « le Google du Telegram public » ; actualisé à mesure que la communauté est explorée. Les heures sont en UTC.

Contenu public uniquement, API officielle de Telegram. À propos · FAQ · Limites de l'index · Retirer une page · Catalogue · Recherche · Comment nous comptons