LinZino的筆記

為開發者們在網路上出一份心力

2017年10月16日 星期一

python3 指數運算 開根號

冪運算 是大陸用語,台灣叫做指數運算。

1. ** 就是做指數運算 的意思。

開根號


In [7]: 4 ** 0.5
Out[7]:  2.0


2.  import math


import math

math.sqrt( x )
http://www.runoob.com/python/func-number-sqrt.html


整數除法
In [11]:5.6 //1
Out[11]: 5.0
張貼者: zino 於 晚上8:11 沒有留言:
以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook分享到 Pinterest
較新的文章 較舊的文章 首頁
訂閱: 文章 (Atom)

搜尋此網誌

關於我自己

zino
檢視我的完整簡介

標籤

APScheduler Arch bash Black screen c centos compiler driver error function literal gesture GNOME jquery kernel linux nvidia pymongo python python3 RDMA RuntimeError scala spark ssh Standalone touchegg ubuntu unicode VNC

網誌存檔

  • ►  2018 (1)
    • ►  2月 (1)
  • ▼  2017 (14)
    • ►  12月 (1)
    • ▼  10月 (1)
      • python3 指數運算 開根號
    • ►  9月 (2)
    • ►  4月 (1)
    • ►  3月 (3)
    • ►  2月 (6)
  • ►  2016 (18)
    • ►  12月 (1)
    • ►  8月 (4)
    • ►  7月 (1)
    • ►  6月 (1)
    • ►  5月 (1)
    • ►  4月 (8)
    • ►  3月 (2)
  • ►  2015 (4)
    • ►  8月 (1)
    • ►  4月 (1)
    • ►  3月 (2)
  • ►  2014 (2)
    • ►  11月 (2)
頂尖企業主題. 技術提供:Blogger.