프로그래밍 언어/Python
python icecream 패키지
Cuoong
2025. 3. 2. 21:53
from icecream import ic
def square(x):
return x * x
ic(square(5))
# ic| square(5): 25
x = 10
ic(x)
# ic| x: 10
y = [1, 2, 3]
ic(len(y), y)
# ic| len(y): 3, y: [1, 2, 3]