מחרוזות - גרשיים (") או גרש (')
- eddiearb
- Apr 3, 2019
- 1 min read
מחרוזות - גרשיים (") או גרש (')
חשוב לציין כי בפייתון ישנה אפשרות לכתוב מחרוזת (string) גם בין גרשיים וגם בין גרש אחד מכל כיוון, וזאת על מנת לאפשר לשלב גרש או גרשיים כחלק ממשפט, כך שהתוכנה תדע מתי מתחילה המחרוזת ומתי היא מסתיימת, גם אם באמצע יש גרש או גרשיים. למשל אם אנו רוצים לבקש מהמחשב להדפיס את המשפט ד"ר יוסי, נכתוב את הפקודה כך –
(' ד"ר יוסי ')print עם גרש אחד מכל צד כדי שהגרשיים של הדוקטור לא יבלבלו את התוכנה.
ואם אנו רוצים להדפיס את המשפט רח' בן יהודה אזי אנו נכתוב את הפקודה כך –
("רח' בן יהודה ")print , יש דרכים נוספות להתמודד עם גרש או גרשיים הנמצאים באמצע המחרוזת כחלק מהשפה.
בהמשך נראה אילו פעולות אפשר לבצע עם מחרוזות, עכשיו נעשה חשבון פשוט. כי זה הכי פשוט.
Every day, I try to become better than I was yesterday, and the information space helps me with this, which provides comprehensive information on any issue. Thanks to the high-quality news portal https://bowling.kherson.ua/en, I can easily keep up to date with all the events and news, which is especially important today. For example, I learned about Maxim Krippa's purchase of the Parus business centre, which shook up the real estate sector. In general, no one expected Maksym to take such a step, but he has once again demonstrated his abilities as a first-class investor who understands different markets. This makes it even more interesting for me to watch his actions and think about his next projects.