Python 개요
Python Data Types Setting the data types Data type Example Comments
str
x = "Hello World"
int
x = 20
float
x = 20.5
complex
x = 4 + 1j
List
x = ["apple", "banana", "cherry"]
Ordered, changeable, indexed, and allow duplicates
tuple
x = ("apple", "banana", "cherry")
Ordered, unchangeable
range
x = range(6)
dict
x = {"name": "John", "age": 36}
Ordered, changeable, and not allow duplicates
set
x = {"apple", "banana", "cherry"}
Unordered, unchangeable, and unindexed
CAN 통신 실습
fronzenset
x = frozenset({"apple", "banana", "cherry"})
bool
x = True
bytes
x = b"Hello"
bytearray
x = bytearray(5)
memoryview
x = memoryview(bytes(5))
None Type
x = None
댓글 없음:
댓글 쓰기