לוגו האתר
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Users
    • Groups

    23c4eb44-2a95-4f93-be69-843c8d729b1f-image.png

    Python | תוכנית Hello World בסיסית.

    מדריכים למתחילים
    hello world python
    1
    1
    51
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Men770
      Men770 מנהל ראשי מנהל תכנות last edited by Men770

      ב"ה.


      תוכנית Hello World בסיסית בpython נראית כך:

      print("Hello World!")
      

      הסבר: אנחנו קוראים כאן לפוקנציית print, ונותנים לה פרמטר אחד, “Hello World”.
      אפשר לתת לה כמה פרמטרים שרוצים, הם יוצגו אחד אחרי השני עם רווח ביניהם.

      בפייתון 2, print זה statement ולא function, ולכן כותבים שם ככה:

      print "Hello World!"
      

      בהצלחה.
      יחי המלך!

      |- יחי אדוננו מורנו ורבינו מלך המשיח לעולם ועד! -|

      |-יש לנו ב"ה אתר חדש, מוזמנים להיכנס.-|

      1 Reply Last reply Reply Quote 1
      • First post
        Last post
      חוקי הפורום