تابعوا بس في الشرط الاخير ليس صحيح فيه خطأ بسيط
إعـــــــلان
تقليص
رثاء
خالص العزاء والمواساه في وفاة العضو القدير الأخ ياسر ياسين رحمه الله
https://www.maxforums.net/node/3676654
https://www.maxforums.net/node/3676654
شاهد أكثر
شاهد أقل
فريق المنابر للبرمجة ::::مشروع الالة الحاسبة::::
تقليص
X
-
المشاركة الأصلية بواسطة BLackx مشاهدة المشاركةتابعوا بس في الشرط الاخير ليس صحيح فيه خطأ بسيطFacebook--------------------Youtube Channel
تعليق
-
المشاركة الأصلية بواسطة BLackx مشاهدة المشاركةلم الاحظ ولكن الادخال السابق سيصبح كالتاي
1020+1
لانه الكود سيحذف المسافات مما يجعله ادخال صحيح يعني ممكن تحذف الشرط الاخير
اذا هل نضيف بعض الأخطاء أم لا نتعمق كثييرا؟؟؟
أين و صلت أنت و الأخ مصطفى ؟؟؟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
تعليق
-
أنا أيضا انتهيتضعوا الكود عشان ادمجهم في بعض
الكود:
كود:def get_result(nums, ops): while(ops != []): opn = -1 n = 0 while (n < len(ops)): if (opn == -1): opn = n else: if (ops[opn] == '+' or ops[opn] == '-'): if (ops[n] == '*' or ops[n] == '/'): opn = n if (ops[opn] == '*' or ops[opn] == '/' or ops[opn] == '+' or ops[opn] == '-'): if (ops[n] == '^'): opn = n n+=1 if (ops[opn] == '+'): nums.insert(opn, nums.pop(opn) + nums.pop(opn)) elif (ops[opn] == '-'): nums.insert(opn, nums.pop(opn) - nums.pop(opn)) elif (ops[opn] == '*'): nums.insert(opn, nums.pop(opn) * nums.pop(opn)) elif (ops[opn] == '/'): nums.insert(opn, nums.pop(opn) / nums.pop(opn)) elif (ops[opn] == '^'): nums.insert(opn, nums.pop(opn) ** nums.pop(opn)) ops.pop(opn) return nums[0] def calc(nums, ops): mod_ops = [] brackets = [] for i in range(len(ops)): if (ops[i] != '(' and ops[i] != ')'): mod_ops += ops[i] else: if ops[i] != ')': temp = "open" else: temp = "close" brackets.append([len(mod_ops), temp]) while (len(brackets)>0): index = -1 for i in range(len(brackets)): if (brackets[i][1] == "open"): index = i if (index != -1): ob = brackets.pop(index) cb = brackets.pop(index) new_ops = mod_ops[ob[0]:cb[0]] mod_ops[ob[0]:cb[0]] = [] new_nums = nums[ob[0]:cb[0]+1] nums[ob[0]:cb[0]+1] = [get_result(new_nums, new_ops)] else: break return get_result(nums, mod_ops)
تعليق
-
غياب غير محدد بسبب الدراسة واعمال سرية انتظروا المفاجأة قريبا ان شاء الله
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 مشاهدة المشاركةها صحيح انا اضفت اولوية الاقواس مما يدعوا لبعض التغييرات في كودكم
اخ BLackx هل تقصد اننا يجب ان نغير بعض الأشياء ام سبق و ان قمت بذلكFacebook--------------------Youtube Channel
تعليق
-
المشاركة الأصلية بواسطة BLackx مشاهدة المشاركةنعم يجب تغيير بعض الامور وسأقوم انا بذلك طبعا اذا سمحتم لي
لان التغييرات لإي الكود كله يعني في اجزاء بس لا استطيع ان اشرح كل تغيير لازم لذلك ساقوم بها
لكننا لم نضع أي معادلة اذن على ماذا سيشتغل الأخ فتحي ؟؟؟؟Facebook--------------------Youtube Channel
تعليق
تعليق