codingnow
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: codingnow | ||
| Version: 0.1.44 | ||
| Version: 0.1.45 | ||
| Summary: A simple example Python package | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/cflab2017/codingnow_py |
@@ -33,3 +33,3 @@ import random | ||
| print("\033[0m",end='') | ||
| print("\n"*2) | ||
| print("\n"*1) | ||
@@ -89,3 +89,5 @@ print("\033[34m",end='') | ||
| if self.is_return_operation: | ||
| print(f"연산자: {self.current_operation}") | ||
| print("\033[33m",end='') | ||
| print(f" 연산자: {self.current_operation}",end='') | ||
| print("\033[0m") | ||
| self.is_return_operation = False | ||
@@ -95,8 +97,13 @@ return self.current_operation | ||
| value = self.problem_lst[self.problem_idx] | ||
| value = self.problem_lst[self.problem_idx] | ||
| print(f"문제값: {value}") | ||
| print("\033[33m",end='') | ||
| print(f" 문제값: {value}",end='') | ||
| print("\033[0m") | ||
| self.problem_idx += 1 | ||
| return value | ||
| def get_operation(self): | ||
| return self.current_operation | ||
| def answer(self, answer): | ||
@@ -136,7 +143,18 @@ print(f"\n\033[31m[결과 확인]\n 입력 값: {answer}\n 정답 값: {self.correct}\033[0m") | ||
| print("이미 마지막 단계입니다.") | ||
| def print_options(self): | ||
| print("\033[33m",end='') | ||
| print() | ||
| print("[옵션 정보]") | ||
| print(f" * operation (현재 연산자): {self.current_operation}") | ||
| print(f" * length (문제값 개수): {len(self.problem_lst)}",end='') | ||
| print("\033[0m") | ||
| def get_option(self, cmd): | ||
| if cmd == 'operation': | ||
| return self.current_operation | ||
| elif cmd == 'length': | ||
| return len(self.problem_lst) | ||
| else: | ||
| return None |
@@ -24,2 +24,5 @@ from codingnow.learning.coding.Chapters.chapter_01 import * | ||
| def get_option(self,cmd): | ||
| return self.instance.get_option(cmd) | ||
| return self.instance.get_option(cmd) | ||
| def print_options(self): | ||
| self.instance.print_options() |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: codingnow | ||
| Version: 0.1.44 | ||
| Version: 0.1.45 | ||
| Summary: A simple example Python package | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/cflab2017/codingnow_py |
+1
-1
@@ -5,3 +5,3 @@ from setuptools import setup, find_packages | ||
| name='codingnow', | ||
| version='0.1.44', | ||
| version='0.1.45', | ||
| author='codingnow', | ||
@@ -8,0 +8,0 @@ author_email='codingnow@naver.com', |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
229837
0.31%3377
0.51%