nfu 40923123 student website

  • Home
    • Site Map
    • reveal
    • blog
  • 自我介紹
  • 電腦繪圖及機械製造
    • 鍵和鍵槽
    • 逕向間隙
  • 語文能力
    • 日文
      • 單字篇 1
    • 英文
  • python 程式語言
    • keywords
      • input
      • print
    • 變數及基本運算
      • assign 指定
    • Dictionary 字典
  • git 指令表
print << Previous Next >> assign 指定

變數及基本運算

python 可以做出基本的甚至複雜的運算(用迴圈)以及一些字串或數字的顯示

不管加減乘除都可以

普遍的像是: 1+1=2 , 4*4=16 , 4**4=256(a**b=為a的b次方) , 7/2=3.5 , 7//2=3(除法取整數)

                 7%2=1(取餘數)等等


print << Previous Next >> assign 指定

Copyright © All rights reserved | This template is made with by Colorlib