반응형
Python 랜덤 번호 생성 예제
# Program to generate a random number between 0 and 9
# importing the random module
import random
print(random.randint(0,9))
반응형
'카페에서 IT 산책 (일반) > Python' 카테고리의 다른 글
python whl 파일 일괄 설치 (2) | 2023.01.05 |
---|---|
pip3 install --user (파이썬 사용자 계정에 패키지 설치) (0) | 2023.01.05 |
Python 숫자 더하기 (0) | 2023.01.03 |
Python 구구단 출력 샘플 코드 (0) | 2023.01.03 |
Python의 collection. defaultdict 설명 및 예제 (0) | 2022.12.31 |