Undergraduate
數學與統計

Python

5

765

0

Jeff

Jeff

Python

完整版筆記:

https://drive.google.com/drive/folders/1EqHWOFMTby1uCtu4zdfkWxj51gTrmUUx

(請勿轉傳!)

PromotionBanner

ノートテキスト

ページ1:

Adobe Acrobat Reader DC (64-bit)
明(H)
x
目錄
1 / 48
100%
Python 最強入門邁向數據科學之路王者歸來/洪錦魁/深智數位
Chapter 1 基本觀念.
Chapter 2 認識變數與基本數學運算
Chapter 3 Python 的基本資料型態.
Python.
最强入門
LORMAR
王者歸來
Chapter4 基本輸入與輸出
Chapter 5 程式流程控制 if
.6
.7
Chapter 6 串列 List..
8
Chapter 7迴圈.
11
Chapter 8 元組(Tuple)
.12
Chapter 9 字典(Dict).
.14
Chapter 10 集合(Set).
18
Review CH8 元組、CH9字典、CH10集合整理.
.20
Chapter 11 函數設計.
24
Chapter 16 正則表達式.
.28
Chapter 18 開發 GUI(Graphical User Interface) 程式使用tkinter.
.31
Chapter 20 數據圖表的設計
.36
Chapter 23 Numpy 模組
.41
參考資料:
.48
人
人

ページ2:

Chapter 2 認識變數與基本數學運算
1.變數命名規則
(1) 英文字母、(底線)、中文字開頭,建議使用英文字母
(2)大小寫有差,與R相同
and
as
assert
break
class
continue
del
del
elif
else
except
False
finally
for
from
global
in
is
Lambda
or
pass
raise
none
return
if
nonlocal
True
Import
not
try
(3) 保留字(關鍵字)不可當作變數名稱,保留字為
while
with
yield
abs()
all()
any()
bin()
bool()
buffer()
apply()
bytearray()
chr()
classmethod()
cmp()
coerce()
basestring()
callable()
compile()
complex()
enumerate()
float()
delattr()
eval()
format()
dict()
dir()
divmod()
hasattr()
hash()
exechile()
frozenset()
help()
input()
int()
intern()
file()
getattr()
hex()
isinstance()
Iter()
len()
list()
locals()
filter()
globals()
id()
issubclass()
long()
map()
max()
memoryview()
min()
next()
object()
oct()
print(
reload()
property()
repr()
setattr()
sum()
slice()
super()
open()
range()
reversed()
sorted()
tuple()
ord()
pow()
(4) 內建函數名稱不建議當變數名稱,內建函數為
unicode()
vars()
xrange()
raw_input()
round!)
staticmethod()
type()
zipf)
reduce()
set()
str()
unichr()
Import()
正確
SUM
fg
X5
thefu
錯誤(紅色地方為錯誤)
sum, 1
3y
XS2
and (保留字)
R
W
人

ページ3:

2. 基本數學運算
符號
函数
例子
次方
**
X=3 ** 3
1
print(x)
>>>27
乘除
* 1
x=9 / 5
2
print(x)
>>>1.8
餘數
%
整除
加減
整理者:林冠頡 202201
x=9% 5
print(x)
>>>4 #9÷5 餘 4
x=9 // 5
print(x)
>>>1
#9÷5的整數為 1
3
運算
優先順序
例子
z=2*3** 3 *2
>>>108
#次方優先2*27*2

Comment

No comments yet