주의사항
def random\_rsp(): """무작위로 가위바위보 중 하나를 낸다""" import random return random.choice(\['가위', '바위', '보'\]) SCISSOR = '가위' ROCK = '바위' PAPER = '보'
import mymodule selected = mymodule.random\_rsp() if(selected == mymodule.ROCK): return '바위를 내셨군요!'
PIP와 Virtualenv (0) | 2019.07.22 |
---|---|
자료구조 - dictionary (0) | 2019.07.21 |
모듈 사용하기 (0) | 2019.07.21 |
for 반복문 (0) | 2019.07.21 |
자료구조 - 리스트(list) (0) | 2019.07.21 |
댓글 영역