بدل num ب n كما في الشرح وليس الكود في بداية الشرح
إعـــــــلان
تقليص
رثاء
خالص العزاء والمواساه في وفاة العضو القدير الأخ ياسر ياسين رحمه الله
https://www.maxforums.net/node/3676654
https://www.maxforums.net/node/3676654
شاهد أكثر
شاهد أقل
فريق المنابر للبرمجة ::::مشروع الالة الحاسبة::::
تقليص
X
-
[10, 105, 1052, 10523]
بيطبع لى المصفوفة دى تمام كده ؟غياب غير محدد بسبب الدراسة واعمال سرية انتظروا المفاجأة قريبا ان شاء الله
You must not feel tired ! , You must not feel desperate .
You must feel hopeful .
You must feel ALLAH with U !
GO GO You Can DO IT , Believe that You Can Do it ! , IF ALLAH With U , NOTHING will Dare to stop U Along your Dream Road !
So , GO and does not return here even you reach to UR Dream and Believe you will have many problems , mistakes and difficulties and you will cross it to UR Dream
تعليق
-
كود PHP:string = "10+5*2/3"
d = " "
n = " "
nums = []
opreators = []
for c in string:
if (c >= '0' and c <= '9'):
n += c
else:
nums.append(int(n))
nums.append(int(n))
for b in string :
if (b == "+" and b == "*" and b =="/" and b == "-") :
d+=b
opreators.append(d)
print opreators
غياب غير محدد بسبب الدراسة واعمال سرية انتظروا المفاجأة قريبا ان شاء الله
You must not feel tired ! , You must not feel desperate .
You must feel hopeful .
You must feel ALLAH with U !
GO GO You Can DO IT , Believe that You Can Do it ! , IF ALLAH With U , NOTHING will Dare to stop U Along your Dream Road !
So , GO and does not return here even you reach to UR Dream and Believe you will have many problems , mistakes and difficulties and you will cross it to UR Dream
تعليق
-
همم قمت بعمل بعض التعديلات على الكود سأقوم الآن بوضعه وسأشرح الفرق حين يتسنى لي الوقت الكافي لكن حاولوا مقارنته مع كودكم
كود:string = input() n = "" nums = [] opreators = [] for c in string: if (c >= '0' and c <= '9'): n += c else: nums.append(float(n)) nums.append(float(n)) for b in string : if (b == "+" or b == "*" or b =="/" or b == "-") : opreators.append(b) print(opreators)
تعليق
-
والله يا اخى احلفلك بالله انى جربت كده وما اشتغلش مش عارف اشمعنى دلوقتى !!!!! انا جربت or وما اشتغلتش
شكرااااااااااااااا يا رب يخليكغياب غير محدد بسبب الدراسة واعمال سرية انتظروا المفاجأة قريبا ان شاء الله
You must not feel tired ! , You must not feel desperate .
You must feel hopeful .
You must feel ALLAH with U !
GO GO You Can DO IT , Believe that You Can Do it ! , IF ALLAH With U , NOTHING will Dare to stop U Along your Dream Road !
So , GO and does not return here even you reach to UR Dream and Believe you will have many problems , mistakes and difficulties and you will cross it to UR Dream
تعليق
-
كود:string = "10+5*2/3" d = " " n = " " nums = [] opreators = [] for c in string: if (c >= '0' and c <= '9'): n += c else: nums.append(int(n)) nums.append(int(n)) for b in string : if (b == "+" or b == "*" or b =="/" or b == "-" ) : d+=b opreators.append(d) print nums
الكود انتهى
مع انى جربت الحل ده وما اشتغلش لما عطاهولى اخونا black فى ايده البركة ههههههههههههههههههههغياب غير محدد بسبب الدراسة واعمال سرية انتظروا المفاجأة قريبا ان شاء الله
You must not feel tired ! , You must not feel desperate .
You must feel hopeful .
You must feel ALLAH with U !
GO GO You Can DO IT , Believe that You Can Do it ! , IF ALLAH With U , NOTHING will Dare to stop U Along your Dream Road !
So , GO and does not return here even you reach to UR Dream and Believe you will have many problems , mistakes and difficulties and you will cross it to UR Dream
تعليق
-
هههههههه علامة التساوى سالطم ههههههههههههههههههههههههههههههههههههغياب غير محدد بسبب الدراسة واعمال سرية انتظروا المفاجأة قريبا ان شاء الله
You must not feel tired ! , You must not feel desperate .
You must feel hopeful .
You must feel ALLAH with U !
GO GO You Can DO IT , Believe that You Can Do it ! , IF ALLAH With U , NOTHING will Dare to stop U Along your Dream Road !
So , GO and does not return here even you reach to UR Dream and Believe you will have many problems , mistakes and difficulties and you will cross it to UR Dream
تعليق
-
المشاركة الأصلية بواسطة BLackx مشاهدة المشاركةأخ انس جرب آخر كود انا كتبته وشوفFacebook--------------------Youtube Channel
تعليق
-
المشاركة الأصلية بواسطة BLackx مشاهدة المشاركةلا أخ منصف مازال عندكم مهمات راجع مهماتكم
باقي الادخال و تساااااوييFacebook--------------------Youtube Channel
تعليق
-
عملنا التساوى والادخال الحمد لله
منصف هينشر التحديثاتغياب غير محدد بسبب الدراسة واعمال سرية انتظروا المفاجأة قريبا ان شاء الله
You must not feel tired ! , You must not feel desperate .
You must feel hopeful .
You must feel ALLAH with U !
GO GO You Can DO IT , Believe that You Can Do it ! , IF ALLAH With U , NOTHING will Dare to stop U Along your Dream Road !
So , GO and does not return here even you reach to UR Dream and Believe you will have many problems , mistakes and difficulties and you will cross it to UR Dream
تعليق
-
المجموعة الاولى: وهي التي سوف تمسك رأس البرنامج لانه يعتبر جزء سهل نسبيا و ستقوم بالتالي
*يطلب ادخال العملية من المستخدم
*يحذف المسافات لو موجودة
*يتأكد من خلوها من الأخطاء
*يطلع ارقامها في مصفوفة م والعمليات في مصفوفة )لستة يعني( واخيرا ينظر أذا في علامة مساواة يسلم البرنامج للمجموعة صاحبة جزء حل المعادلات ولو ما فيها لمجموعة الحساب
تعليق
تعليق