개발/파이썬
python. /와 // 차이
ttoance
2023. 10. 17. 23:08
/ 와 // 차이
연산자 / : float
연산자 // : int
print(type(6/3)) # <class 'float'>
print(type(6//3)) # <class 'int'>
https://twpower.github.io/112-difference-between-single-slash-and-double-slash-in-python
반응형