PSH مشاريع
Open in Telegram
بخ 👀
Show moreThe country is not specifiedThe category is not specified
640
Subscribers
No data24 hours
No data7 days
No data30 days
Posts Archive
640
from colorama import init, Fore, Style
import datetime
# تهيئة حزمة colorama
init(autoreset=True)
# الحصول على الوقت الحالي
current_time = datetime.datetime.now().strftime("%H:%M:%S")
# الحصول على السنة والشهر الحاليين
current_year = datetime.datetime.now().strftime("%Y")
current_month = datetime.datetime.now().strftime("%B")
# طباعة الوقت والسنة والشهر بألوان مختلفة
print(f"الوقت الحالي: {Fore.GREEN}{current_time}{Style.RESET_ALL}")
print(f"السنة الحالية: {Fore.BLUE}{current_year}{Style.RESET_ALL}")
print(f"الشهر الحالي: {Fore.RED}{current_month}{Style.RESET_ALL}")
