W04: 3/07 === ### [Python的資料型態 (Python Data Types)](https://www.w3schools.com/python/python_datatypes.asp) > 文本類(Text Type): `str` > 數值類(Numeric Types): `int`, `float`, `complex` > 序列類(Sequence Types): `list`, `tuple`, `range` > 映射類(Mapping Type): `dict` > 集合類(Set Types): `set`, `frozenset` > 布爾類(Boolean Type): `bool` > 二進制類(Binary Types): `bytes`, `bytearray`, `memoryview` --- ### [Python鑄造 (Python Casting)](https://www.w3schools.com/python/python_casting.asp) Casting把某個内容印轉成某個資料形態(見上表) > x = str(3) # x will be '3' > y = int(3) # y will be 3 > z = float(3) # z will be 3.0 ### `作業` [數串排序](https://colab.research.google.com/drive/1Ptb2ZjY3bCV24fyRvMaUyb5F3pXIJ25y)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up