아미(아름다운미소)

python divmod() 본문

랭귀지/PYTHON

python divmod()

유키공 2019. 4. 21. 18:51

몫과 나머지를 구하는 함수

[root@localhost ~]# python
>>> a,b = divmod(9,5)
>>> print a,b
1 4

'랭귀지 > PYTHON' 카테고리의 다른 글

이클립스 실행 오류 해결방법(로고만 잠깐 나타난후 바로꺼짐)  (1) 2019.05.02
pandas.DataFrame.head, DataFrame.tail  (0) 2019.04.30
python chr  (0) 2019.04.20
Python 튜플 슬라이싱  (0) 2019.04.17
OpenCV 란?  (0) 2019.04.16
Comments