전체 글(302)
-
[threading] ipynb에서 daemon thread 가 적용되지 않는 것에 대해서
ipynb에서 daemon thread 가 적용되지 않는 것에 대해서 선요약 원인 : 단일 셀의 실행이 끝났다고 해서 Python 인터프리터가 종료되는 것은 아니므로 백그라운드 스레드가 계속 실행됩니다. ipynb 말고 py 에서 실행하면 문제 없이 데몬스레드가 종료됨. Treading 모듈 import threading import time def first(): print(11) time.sleep(0.1) print(22) time.sleep(0.1) print(33) time.sleep(0.1) def second(): print(1111) time.sleep(0.1) print(2222) time.sleep(0.1) print(3333) time.sleep(0.1) def loop(): for ..
2024.03.05 -
8. Character Encodings - Unicode, ASCII
Character Encodings Character encodings are a way of representing characters as numbers. They are used to store and transmit text. The most common character encoding is ASCII, which is a 7-bit encoding. This means that each character is represented by a number between 0 and 127. The ASCII character set contains 128 characters, including letters, numbers, punctuation, and control characters. The ..
2024.03.04 -
6. Floating Point Numbers (부동 소수점)
Floating Point Numbers Floating point numbers are numbers that have a decimal point in them. They are used to represent real numbers. For example, 3.14 is a floating point number. 3 is not a floating point number because it does not have a decimal point in it. 부동 소수점 숫자는 소수점이 포함된 숫자입니다. 실수를 표현하는 데 사용됩니다. 예를 들어 3.14는 부동 소수점 숫자입니다. 3은 소수점이 포함되어 있지 않으므로 부동 소수점 숫자가 아닙니다. Floating Point Numbers(부동소수점..
2024.03.01 -
17.1 OSI and TCP/IP Models
OSI and TCP/IP Models The OSI and TCP/IP model is used to help the developer to design their system for interoperability. The OSI model has 7 layers while the TCP/IP model has a more summarized form of the OSI model only consisting 4 layers. This is important if you’re are trying to design a system to communicate with other systems. 개발자가 상호운용성을 위해 시스템을 설계할 때 OSI 및 TCP/IP 모델을 사용합니다. OSI 모델은 7개의 계..
2024.02.29 -
[selenium] AttributeError: module 'selenium.webdriver' has no attribute 'Service'
오류 AttributeError: module 'selenium.webdriver' has no attribute 'Service' 환경 Linux(ubuntu 20.04), Windows11 python 3.10.11 selenium 4.18.1 chrome 122.0.6261.95(공식 빌드) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In[11], line 9 6 options = webdriver.ChromeOptions() 7 options.add_argument('--headless') ----> 9 dri..
2024.02.29 -
16.2 Normalization vs Denormalization
Normalization vs Denormalization Database normalization is a process used to organize a database into tables and columns. The idea is that a table should be about a specific topic and that only those columns which support that topic are included. This limits the number of duplicate data contained within your database. This makes the database more flexible by eliminating issues stemming from data..
2024.02.29