العمل مع الوحدات والحزم
نظّم مشاريعك الكبيرة عبر تقسيم الكود إلى وحدات وحزم قابلة لإعادة الاستخدام.
🐍 Try Python right here
Write code below and click Run — it executes right in your browser, nothing is sent to any server.
Output will appear here.
الدروس
1
استيراد جزئي من وحدة
يمكنك استيراد دالة أو صنف محدد فقط من وحدة باستخدام from module import name، بدلاً من الوحدة كاملة.
✏️ Practice this lesson:
Output will appear here.