مركز العروض التفاعلية
جرّبوا أسلوب التدريس بأنفسكم
كل ما في هذه الصفحة يعمل داخل متصفحكم. تُنفَّذ الشيفرة في بيئة معزولة: لا يمكنها الوصول إلى خوادمنا أو ملفاتكم أو الشبكة.
شروحات العرض التوضيحي باللغة الإنجليزية.
Python: شيفرة من محاضرة حقيقية
هذه هي الشيفرة المصدرية المنشورة مع المحاضرة.Python and Artificial Intelligence · Lecture 26: Object-oriented programming — classes and objects
The lecture introduces classes and objects: one class used as a template, several objects created from it, each holding its own data.
(لا توجد مخرجات)يعمل داخل بيئة معزولة في متصفحكم، مع حدّ زمني للتنفيذ. في التشغيل الأول تُنزَّل بيئة تشغيل Python (نحو 10 ميغابايت).
سطرًا بسطر
- 1–2
class Student:defines a new type named Student.passmeans the class has no body yet — it is an empty template. - 4
Student()creates an object (an instance) from the class and stores it in the variablestudent1. - 5–7Attributes are attached to this one object with dot notation: a name, a score and an active flag. They belong to
student1only. - 9–12A second, independent object. Changing
student2never changesstudent1: each object keeps its own data. - 14–20Each object’s attributes are read back with the same dot notation and printed.
تمرين
Add a third student, student3, named "Omar" with a score of 78, and print "Student 3", his name and his score after the others.
Follow the pattern of student1 and student2.
Python ووحدة تحكم دقيقة
كُتبت لهذا العرض التوضيحي، وفق مواضيع المحاضرة.A Python program reads sensor lines such as "T:23.5;L:512" from a microcontroller over a serial port, rejects corrupted lines, keeps a moving average and switches the board’s LED on when the room is too warm. Here it talks to a simulated board; with `pip install pyserial` the same code drives a real Arduino. The Python side and its checks are tested; the Arduino sketch has not yet been tested on physical hardware.
(لا توجد مخرجات)يعمل داخل بيئة معزولة في متصفحكم، مع حدّ زمني للتنفيذ. في التشغيل الأول تُنزَّل بيئة تشغيل Python (نحو 10 ميغابايت).
سطرًا بسطر
- 22–43
parse_readingdecodes one raw line, splits it intokey:valueparts, converts the numbers and rejects anything malformed or outside what the sensors can measure. A bad line returnsNoneinstead of crashing the program. - 46–52
LabMonitorreceives the port. It only needsreadline()andwrite(), so a realserial.Serialand theSimulatedBoardare interchangeable. - 50, 54–55The moving average over the last readings smooths out sensor noise;
deque(maxlen=…)drops the oldest value automatically. - 57–60
set_ledsendsLED:1orLED:0only when the state changes, so the board is not flooded with commands. - 62–70
stepreads one line and reacts to it; bad lines are counted, good ones update the average and the LED.
تمرين
Count how often the LED changes state. Add an attribute led_switches that starts at 0 and goes up by one every time set_led actually sends a command.
Initialise it in __init__, increase it inside the if in set_led.
تحليل البيانات باستخدام Pandas
كُتبت لهذا العرض التوضيحي، وفق مواضيع المحاضرة.Data processing using Python and the Pandas library · Lecture 3: selecting rows and columns with loc and iloc
A small table of results, filtered by position with iloc, by condition with loc, and summarised with groupby — the operations taught in the course’s data-selection section.
(لا توجد مخرجات)يعمل داخل بيئة معزولة في متصفحكم، مع حدّ زمني للتنفيذ. في التشغيل الأول تُنزَّل بيئة تشغيل Python (نحو 10 ميغابايت).
سطرًا بسطر
- 3–7A DataFrame is a table: each key becomes a column, each list holds that column’s values.
- 11–12
ilocselects by position.1:3means rows 1 and 2 — the end of a slice is not included. - 14–15
locselects by label and condition. Conditions are combined with&and each one is wrapped in parentheses. - 17–18
groupby("course")splits the table by course;.mean()averages the scores of each group.
تنشر دورة «Python والذكاء الاصطناعي» حاليًا الجزء الخاص بأساسيات Python. أما محاضرات تعلّم الآلة فلم تُنشر بعد، ولذلك لا تظهر هنا.
GIS باستخدام ArcGIS Maps SDK for JavaScript
كُتبت لهذا العرض التوضيحي، وفق مواضيع المحاضرة.تعمل محاضرات GIS باستخدام ArcGIS Maps SDK for JavaScript من Esri، وقد يتطلب ذلك حسابًا لدى Esri أو مفتاح API. يشرح الاستعراض أدناه الشيفرة؛ شاهدوا محاضرات المعاينة المجانية لرؤيتها وهي تعمل.
1<div id="viewDiv" style="height: 400px"></div>2<link rel="stylesheet" href="https://js.arcgis.com/4.30/esri/themes/light/main.css">3<script src="https://js.arcgis.com/4.30/"></script>4<script>5 require(["esri/config", "esri/Map", "esri/views/MapView", "esri/layers/FeatureLayer"],6 (esriConfig, Map, MapView, FeatureLayer) => {7 esriConfig.apiKey = "YOUR_ARCGIS_API_KEY";89 const map = new Map({ basemap: "arcgis/topographic" });1011 const view = new MapView({12 container: "viewDiv",13 map: map,14 center: [-118.805, 34.027], // longitude, latitude15 zoom: 1216 });1718 const trailheads = new FeatureLayer({19 url: "https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trailheads/FeatureServer/0",20 outFields: ["TRL_NAME", "CITY_JUR"],21 popupTemplate: { title: "{TRL_NAME}", content: "City: {CITY_JUR}" }22 });23 map.add(trailheads);24 });25</script>
سطرًا بسطر
- 1The map is drawn inside this element; it needs a height.
- 2–3The ArcGIS Maps SDK for JavaScript stylesheet and library, loaded from Esri’s CDN.
- 5–6
requireloads the modules the page uses: configuration, the map, the 2D view and feature layers. - 7Esri basemaps and services are accessed with an API key from an ArcGIS account.
- 9A
Mapholds the data: here a topographic basemap. - 11–16A
MapViewshows the map in the page: where (center, as longitude and latitude) and how close (zoom). - 18–23A
FeatureLayeradds points from a hosted feature service;popupTemplatedecides what appears when a point is clicked.
اختبار التقييم الذاتي
1. What does `student1 = Student()` do?
2. After `student1.score = 90` and `student2.score = 85`, what is `student1.score`?
3. What does `pass` mean inside `class Student:`?
شهادة الإتمام
يحصل المتعلمون الذين يُتمّون الدورة على شهادة تحمل رقمًا فريدًا يمكن لأي شخص التحقّق منه على المنصة.
كيف يتم التحقّق →مسارات المتعلّم والمدرّس والمشرف
كل خطوة موسومة بأنها متاحة اليوم أو مخطط لها، لتروا بدقة ما هو موجود فعلًا.
المتعلّم
- 1يسجّله فريق EduCoursesPro في الدورة المتفق عليهامتاح اليوم
- 2يشاهد المحاضرات، مع حفظ التقدّم ونقطة الاستئنافمتاح اليوم
- 3ينزّل الشيفرة المصدرية للمحاضرة ودليلها التقنيمتاح اليوم
- 4يجيب عن أسئلة المراجعة داخل الفيديومتاح اليوم
- 5يسأل المساعد التعليمي بالذكاء الاصطناعي عن المحاضرة التي يشاهدهامتاح اليوم
- 6يؤدي اختبارات التقييم الذاتي مع تغذية راجعة فوريةمتاح اليوم
- 7يسلّم مشروعًا لتقييمه داخل المنصةمخطط له
- 8يحصل على شهادة قابلة للتحقّق عند الإتماممتاح اليوم
المدرّس
- 1يطّلع على تقدّم كل متعلّم في الدورةمتاح اليوم
- 2يجيب عن أسئلة المتعلمين في كل محاضرةمتاح اليوم
- 3يراسل متعلّمي الدورةمتاح اليوم
- 4يقيّم المشاريع وفق سلّم تقييم مشترك (خلال البرنامج التجريبي: خارج المنصة)مخطط له
- 5يطّلع على درجات المجموعة في الاختبارات وعلى تقرير المهاراتمخطط له
مشرف المؤسسة
- 1يتلقّى من EduCoursesPro تصديرًا للتقدّم لكل دورةمتاح اليوم
- 2يملك لوحة تحكم للمؤسسة تتضمن المجموعات والمقاعدمخطط له
- 3يستورد قائمة الفصل ويدعو المتعلمينمخطط له
- 4ينزّل تقارير الإتمام والمهارات الخاصة بالمؤسسةمخطط له
هل تريدون جولة مصحوبة بشرح لفريقكم؟
يمكننا أن نعرّف المدرّسين والمنسّقين لديكم بالمنصة خطوة بخطوة، ونجيب عن أسئلتهم مباشرة.
عرض توضيحي مصحوب بشرح