반응형

Programming 6

[Python] 주석 길게 넣기 (comment)

Update : 2024.06.25Contents : Python Comment short & long 실제 코딩 결과 및 예제는 맨 아래 링크에 있습니다. 오늘 이야기하고자 하는 것은 짧은 주석과 긴 주석을 어떻게 넣는 것인지입니다. # 짧은 노트는 이렇게 넣으시면 됩니다.'''이후 print 이야기할 때도 그렇지만"""(큰따옴표) 혹은 '''(작은따옴표) 3번을 양끝에 입력하면 됩니다.''' 단, 주의할 점이 하나 있습니다.주석을 포함한 Python의 모든 문장은 들여쓰기 (indent)를 주의해야 합니다.주석이라고 하여도 문장 안 혹은 함수 안에 있는 긴 주석이라면 들여쓰기를 해야 합니다.컴퓨터가 인식할 때 문장 구조를 다르게 인식하기 때문입니다 (중간에 함수가 끝난 것으로 생각 등).  입력한 내..

Programming/Python 2024.06.25

[Python]의 기본 구조 : 키워드, 식별자

Updates : 2024.06.25Contents : Python 프로그래밍의 기본 구조실제 코딩 결과 및 예제는 맨 아래 링크에 있습니다.파이썬 프로그래밍은 3단계로 구성되어 있습니다.간단한 코드들을 expression이라 부르며expression들이 모여 statement를 이루고statement들이 모여 프로그램(program)을 만듭니다.파이썬 프로그램을 작성할 때 가장 기본이 되는 구성요소가 키워드, 식별자, 함수라고 볼 수 있습니다.키워드 : 파이썬에서 정해둔 특정한 역할 혹은 값을 가진 요소들식별자 : 사용자가 정의하여 변수들을 저장하거나 계산하는 요소함수 : 특정 매개변수에 대한 인자값을 받아 특정 역할을 수행한 후 특정 값을 반환하는 요소라고 간단하게 설명할 수 있습니다.함수는 이후에 ..

Programming/Python 2024.06.25

[Llama] 라마3 다운로드 및 실행 방법 (Kor)

updates : 2024.04.23contents : Llama 3 오리지널 모델의 실행 방법입니다. Hugging-face 실행 방법 아닙니다! Llama 공식 사이트로 들어가서 엑세스 허가를 먼저 받아야 합니다.https://llama.meta.com/ Meta LlamaMeta Llama is the next generation of our open source large language model, available for free for research and commercial use.llama.meta.com위 사이트의 "Download models"를 클릭하세요 양식 채우시고 이후에 나오는 모든 내용에 동의해주세요. 이제 이후에 모델을 다운로드 받을 때 사용할 URL을 받게 되는데, 이거..

Programming/AI, LLM 2024.04.27

[Nsight] Systems & Compute 설치 및 세팅 (Kor)

updates  : 2024.04.25contents : Linux 환경 위에서 Nsight Systems 그리고 Compute 설치 및 세팅# NVIDIA Nsight Systems 설치wget https://developer.nvidia.com/downloads/assets/tools/secure/nsight-systems/2024_1/nsightsystems-linux-public-2024.1.1.59-3380207.runbash nsightsystems-linux-public-2024.1.1.59-3380207.run# To uninstall the Nsight Systems 2023.4.1, please delete "/opt/nvidia/nsight-systems/2023.4.1"# 만약 ns..

[Nsight] Systems & Compute Install and Setting (Eng)

updates  : 2024.04.25contents : Install and set Nsight Systems on Docker or Linux # download install file from NVIDIA Nsight Systemswget https://developer.nvidia.com/downloads/assets/tools/secure/nsight-systems/2024_1/nsightsystems-linux-public-2024.1.1.59-3380207.runbash nsightsystems-linux-public-2024.1.1.59-3380207.run# To uninstall the Nsight Systems 2023.4.1, please delete "/opt/nvidia/nsig..

반응형