<td id="6000o"><rt id="6000o"></rt></td>
  • <sup id="6000o"><button id="6000o"></button></sup>
  • <optgroup id="6000o"></optgroup>
  • <strong id="6000o"></strong>
  • Python知識分享網 - 專業的Python學習網站 學Python,上Python222
    《1000 Examples Programming In Python》1000個Python編程示例 PDF 下載
    發布于:2024-04-20 14:19:28
    (假如點擊沒反應,多刷新兩次就OK!)

    《1000 Examples Programming In Python》1000個Python編程示例 PDF 下載  圖1

     

    資料內容:

     

     

    Exercise: Standard Input
    In the previous exercises we expected the
    userinput to come in on the “Standard Input” aka.
    STDIN.
    If you would like to practice this more, come up
    with other ideas, try to solve them and tell me
    about the task. (in person or via e-mail.)
    (e.g. you could start building an interactive role
    playing game.)
     
    Solution: Area of rectangular
     
    1 def main():
    2 #length = 10
    3 #width = 3
    4
    5 length = int(input('Length: '))
    6 width = int(input('Width: '))
    7
    8 if length <= 0:
    9 print("length is not positive")
    10 return
    11
    12 if width <= 0:
    13 print("width is not positive")
    14 return
    15
    16 area = length * width
    17 print("The area is ", area)
    18
    19 main()

     

     

     

     

    欧美精品18videosex性欧美,老师的粉嫩小又紧水又多,久久国产高潮流白浆免费观看,国产睡熟迷奷系列网站
    <td id="6000o"><rt id="6000o"></rt></td>
  • <sup id="6000o"><button id="6000o"></button></sup>
  • <optgroup id="6000o"></optgroup>
  • <strong id="6000o"></strong>