로딩
요청 처리 중입니다...

python으로 CLI 기반의 그림판 만들기

 python으로 CLI 기반의 그림판 만들기

오늘은 python을 이용하여 명령 줄 그림판을 제작했다. import os import time as t global size,x,y,sym,brush print('CLI Paint! v1.0-beta [for windows]') #일부 명령어는 windows에서만 작동한다. try: import keyboard #keyboard 모듈 불러오기를 시도 except: print('Installing keyboard library on computer...')

#모듈 불러오기에 실패하면 모듈 설치 os.system('pip install keyboard') try: import keyboard print('Successfully installed! Please restart the program.') except: print("Can't install keyboard module... please check python pip.")

#pip이 windows 환경변수에 등록되지 않았다면...

# 그림판 # 명령줄 # 첫글 # 파이썬 # 프로그래밍

등록된 다른 글