분류 전체보기 337

ip addr show, su root, curl, url, yum, adduser root, sudo gpasswd -a apl wheel, wheel

ip addr show Show me current IP. ip addr show 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet ###.#.#.#/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eno1: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 8c:dc:d4:22:94..

Linux 2021.05.18

update, islower, if in, abs, reverse, pprint, add, discard, union, intersection, symmetric_difference, issubset, issuperset, isdisjoint, enumerate

update It takes a key-value pair and puts into the existing dictionary. icecream = {'탱크보이': 1200, '폴라포': 1200, '빵빠레': 1800, '월드콘': 1500, '메로나': 1000} new_product = {'팥빙수':2700, '아맛나':1000} icecream.update(new_product) icecream >>> {'탱크보이': 1200, '폴라포': 1200, '빵빠레': 1800, '월드콘': 1500, '메로나': 1000, '팥빙수': 2700, '아맛나': 1000} islower Checks if all the characters in the text are in lower case. user_i..

Basic Python 2021.05.18

sep, end=, replace, upper, lower, isupper, islower, capitalize, insert, join, *(star expression), partition

sep Seperator, between the arguments to print() function. print('naver','kakao','samsung',sep=';') >>> naver;kakao;samsung print('naver','kakao','sk','samsung',sep='/') >>> naver/kakao/sk/samsung end= It can be put anything in end, then it will be following. '\n\ is the default. print("first",end=' ');print("second") >>> first second ; : Multiple command in one line. replace string.replace(old,n..

Basic Python 2021.05.08