This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 본 예제는 v_1, v_2, v_3 이라는 파이썬 가상환경이 미리 생성되어 있어야 한다. | |
# 각 가상환경에는 다른 버전의 PyYAML 이 설치 되어 있어야 한다. | |
import multiprocessing as mp | |
import os, sys | |
import pathlib | |
from functools import wraps | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TestClass(object): | |
def a(self): | |
raise TypeError | |
def __enter__(self): | |
return self | |
def __exit__(self, exc_type, exc_val, exc_tb): | |
print(exc_type, exc_val, exc_tb) | |
return True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt5 import QtWidgets | |
from PyQt5 import QtCore | |
from PyQt5 import QtGui | |
from PyQt5.QtWidgets import QMenu | |
from PyQt5.QtCore import QEvent | |
from PyQt5.QtGui import QKeySequence | |
from PyQt5.QtGui import QPen, QColor | |
from PyQt5.QtCore import Qt | |
from PyQt5.QtGui import QCursor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import sys | |
from PyQt5 import QtWidgets | |
from PyQt5 import QtCore | |
from PyQt5 import QtGui | |
import time | |
import random | |
import math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'raven' | |
import sys | |
from PyQt5 import QtWidgets | |
from PyQt5 import QtCore | |
from PyQt5 import QtGui | |
import random | |
class Bar: | |
def __init__(self, x, y): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import sys | |
from PyQt5 import QtWidgets | |
from PyQt5 import QtGui | |
from PyQt5.QtCore import pyqtSlot # pyqtSlot 프로퍼티를 사용하기 위함 | |
datas = ['정철아','문서를','보면','다 나온다'] | |