목록분류 전체보기 (336)
공부중
d["key"]와 d.get("key")의 차이를 알아보자. 딕셔너리를 아래와 같이 설정했다고 하자person = { "first_name": "John", "last_name": "Doe", "age": 30 } 1. d["key"] 사용한경우 print(person["first_name"]) # 출력: Johnprint(person["age"]) # 출력: 30print(person["middle_name"]) # KeyError 발생 키값이 존재하는 경우 출력이 나오지만, 키값이 존재하지 않는경우 Keyerror가 발생한다. 2. d.get("key") 사용한 경우print(person.get("first_name")) # 출력: Johnprint(person.get("age")) ..
설치 버전 :ubuntu 22.04 https://itlearningcenter.tistory.com/entry/%E3%80%90Ubuntu-2004-LTS%E3%80%91%EC%B9%B4%EC%B9%B4%EC%98%A4%ED%86%A1-%EC%84%A4%EC%B9%98-1 【22.04 LTS】 카카오톡 설치우분투 환경에서 Windows 프로그램인 카카오톡을 설치하기 위해서는 Wine을 설치해야 합니다. Wine 설치 법은 아래 글을 참조해 주시기 바랍니다. 2023.10.27 - [유틸리티/우분투] - 【22.04 LTS】 Wine 설치itlearningcenter.tistory.com 참고 자료 카카오톡 설치파일 다운 받기https://www.kakaocorp.com/page/service/ser..
1. 기본 구조 try: print("오류 없구") a = 1 if a == 1: raise Exception("내가 오류 발생시키고 싶었어") raiseexcept Exception as e: print(f"{type(e)}, {e}") .__name__를 사용하면 이렇게도 할수있다 만약 finally까지 포함하면.. try: print("오류 없구") a = 1 if a == 1: raise Exception("내가 오류 발생시키고 싶었어") raiseexcept Exception as e: print(f"{type(e)}, {e}")finally: print('그래도 끝') 3. 오류의 종류오류 종류설명..
보호되어 있는 글입니다.
보호되어 있는 글입니다.
설치하는 우분투 버전 : ubuntu 22.04 https://slack.com/intl/ko-kr/downloads/linux Linux | 다운로드모바일 기기나 데스크톱에 Slack을 무료로 다운로드하세요. iOS, Android, Mac, Windows 및 Linux용 앱으로 대화를 이어나가세요.slack.com 여기서 .DEB 앱 다운로드 선택 누르자마자 다운로드가 된다. sudo dpkg -i slack-desktop-4.39.88-amd64.deb 설치 완료
이전에 명령어를 사용해서 크롬과 Vs code를 설치한 방법을 정리하였었다. https://brush-up.tistory.com/241 [ 우분투 ] 크롬(chrome), Vs code 설치 및 업데이트1. chrome 설치 및 업데이트 1. 터미널 열기: 터미널을 엽니다. 단축키 Ctrl+Alt+T를 사용할 수 있습니다. 2. 현재 설치된 Google Chrome 업데이트: 먼저, 시스템의 패키지 목록을 업데이트합니다.sudo apt ubrush-up.tistory.com 간단하게 설치하는 방법은 다음과 같다. sudo dpkg -i 1. 크롬 설치 https://support.google.com/chrome/answer/95346?hl=ko&co=GENIE.Platform=Desktop#zipp..
보호되어 있는 글입니다.