본문 바로가기

공부하며놀자/프로그래밍40

[Python] logging logger 관련 내용 아주 이해하기 쉽게 잘 설명하고 있다. 링크: https://stackoverflow.com/questions/67269916/how-to-avoid-root-handler-being-called-from-the-custom-logger-in-python Some basics about the logging module logger: a person who receives the log string, sorts it by a predefined level, then uses his own handler if any to process the log and, by default passes the log to his superior. root logger: the superior of superiors, .. 2022. 9. 8.
[C#]Abstract class abstract function은 상속 받는 쪽에서 무조건 새로 구현해야 한다. virtual은 기존 내용이 괜찮으면 그대로 쓰고 아니면 새로 구현해야 한다. public abstract class BaseClass { public string nameBase = "Base"; public void BaseName() { Console.WriteLine($"Basename is {nameBase}"); } public abstract void ChildName(); } public class ChildA:BaseClass { public string childName = "ChildA"; public override void ChildName() { Console.WriteLine($"Child name.. 2022. 4. 27.
Visual Studio .net framework gui editor designer view 가 안 열릴 때 c# .net framework gui 프로그램 만들던 중 어느 순간부터 GUI editor, designer view가 열리지 않았다. 빨리 핵심 부분 코딩이 중요해서 그냥 진행했었다. GUI를 조금 수정하려고 하는데 아무리 해도 열리지 않는다. 검색을 해보니 .net core 3이 아니냐 이런 말이 주를 이룬다. form1.cs 에 class 하나만 있어야 한다. 이렇게 public partial class Form1 : Form { } 그런데 나는 빨리 테스트 한다고 그 위에다가 class를 하나 더 추가했었다. 이 상태에서는 아무리 해도 안 열린다. testClass를 testClass.cs로 빼자마자 바로 열린다. public class testClass { } public partial cla.. 2022. 4. 27.
Visual Studio Code Python pip install 설정하기 컴퓨터 포맷을 하고 나서 예전 환경 설정하는 게 보통일이 아니다. 다했다 생각했는데 하나 둘 다른일을 할 때 마다 아직 안 한것들이 너무 많은 것을 깨닫는다. 파이썬 pip install 설정 방법 Windows 10에서 python을 하기위해 python 3.10.1을 설치했고, visual studio code도 설치했다. pip install pyautogui 를 터미널에서 입력하니, "Python pip is not recognized..." 이런식으로 pip을 못 알아보겠다고 에러를 뱉어낸다. 설정하는 방법을 확인해보자. 1. visual studio code 에서 작업하는 폴더를 선택한다. 보통 PythonWorkspace 혹은 Project라는 폴더로 많이들 사용하는 것 같다. 나는 Pyth.. 2021. 12. 15.
반응형