دورة البايثون أساسيات أوامر الطباعة والتعليقات تطبيقات

in #arab6 years ago

دورة البايثون أساسيات أوامر الطباعة والتعليقات تطبيقات

محتوى الدورة

السلام عليكم ورحمة الله وتعالى وبركاته مرحبا مجددا في الدوره التعليميه الخاصه ديال بايتون الدوره التعليميه الخاصه بالبايثون
لقد تحدثنا في الدرس السابق عن مفهوم البايثون وكيفيه تنصيبه وايضا لقد تحدثنا عن الطباعة وقد تحدثنا عن التعليقات و الطباعه اليوم سوف نتطرق الى بعض التطبيقات الاستعمالات المميزه اوامر الطباعه والتعليقات فمن الاساسي تعلم وضع التعليقات في برنامجنا لكي نفهم او نشير الى ما يقوم به سطر ما التعليقات تساعد الجميع على فهم الكود البرمجي دون تدخل او شرح للمبرمج اليوم سوف نتطرق الى مجموعة من التطبيقات الدرس الاول حسنا دعونا نبدأ
‏ نبدا اولا التعليقات نتطرق الى مختلف طرق كتابتها لكي نفهم ونتواصل الى الطريقه الاسهل
‏ الطريقه الاولى تطرقنا لها في الدرس السابق وهي باستعمال رمز الشبكه #

image.png

image.png

ولكن عيب هذه الطريقة هي انها يجب ان تضع رمز الشبكه في كل سطر على شكل تعليق وهذا قد يضيع الكثير من الوقت على المبرمج اذا هناك طرق اخرى لحل هذه المشكله وهي استعمال 3 علامات التنصيص في بدايه ونهايه التعليق
image.png

image.png

لننتقل الآن لأمر الطباعة
لقد شاهدنا في الدرس السابق كيف يتم أمر الطباعة وكيف تتم كتابة أمره ولكن هناك بعض المشاكل التي قد تواجهك اذا استعملت علامات التنصيص الاحادية مثلا اذا اردنا طباعه سوف نلاحظ هذا المشكل
image.png

image.png

ولكن لا تقلق فلكل مشكلة حل و يمكن حل المشكل عن طريق امرا او بطريقتين
image.png

image.png

ماذا لو كتبنا كود الطبع في نفس السطر من أجل الحصول على جملة متتابعة على الشكل التالي
image.png

image.png

اذا اردت ان تكتب جمله في نفس السطر لا تقوم بما يلي
image.png

image.png

هناك العديد من الامكانيات الاخرى استعمال امر الطباعه من بينها ان نقوم بعمليات الحساب جمع عددين او طرح عددين وباقي العمليات الاخرى
image.png

image.png

اتمنى من كل قلبي ان تكون هذه التطبيقات قد عجبتكم وانت تتفاعلوا معنا بردودكم الجميله شكرا لكم

@arhersost كان معكم اخوكم

Sort:  

sneaky-ninja-sword-xs.jpg
Sneaky Ninja Attack! You have just been defended with a 15.16% upvote!
I was summoned by @arhersost. I have done their bidding and now I will vanish...

woosh
A portion of the proceeds from your bid was used in support of youarehope and tarc.

Abuse Policy
Rules
How to use Sneaky Ninja
How it works
Victim of grumpycat?

You got a 41.87% upvote from @upmewhale courtesy of @arhersost!

Earn 100% earning payout by delegating SP to @upmewhale. Visit http://www.upmewhale.com for details!

You got a 3.33% upvote from @postpromoter courtesy of @arhersost!

Want to promote your posts too? Check out the Steem Bot Tracker website for more info. If you would like to support the development of @postpromoter and the bot tracker please vote for @yabapmatt for witness!

You have received a @GrumpyCat flag because you or someone else send money to buy votes on your post from an irresponsible non-GrumpyCompliant service.

Some bots like @sneaky-ninja (by @michaeldavid) are acting irresponsibly by selling votes on posts very close to final payout. These votes are sneaky, not promotion and are most of the time placed on low value content.

Sending money to these bots is also financially supporting for-profit only posters (spammers).

To know what voting bot to use, refer to https://steembottracker.com/ and use those that have 3.5 day or less in the "Max Age" column.

Important warning, since @sneaky-ninja has made no effort to improve in more than 4 months, it's vote will still be countered even should they improve his Max Age setting.

Learn more, learn even more...

This post has received a 7.30% upvote from @lovejuice thanks to @arhersost. They love you, so does Aggroed. Please be sure to vote for Witnesses at https://steemit.com/~witnesses.

This post has received a 22.22% upvote from @msp-bidbot thanks to: @arhersost. Delegate SP to this public bot and get paid daily: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP Don't delegate so much that you have less than 50SP left on your account.