목록#학습/AI&IT (42)
Note
https://www.youtube.com/watch?v=M6kQTpIqpLs * 변수 * 타입 (숫자, 문자열, 불리안) * 조건문 * 함수 * 반복문 - 40:00 * 아이고
프로그래밍 용어 원문 : https://gist.github.com/shoark7/e8e103dd9a2ff11b94432c17c3826ab9 프로그래밍에서 필수적인 용어 정리를 해봅시다! 프로그래밍에서 필수적인 용어 정리를 해봅시다! GitHub Gist: instantly share code, notes, and snippets. gist.github.com 자료구조 : data structure. 단일 값이나 다른 자료구조를 포함하고 있는 큰 뭉치. 예) list = [] 연산자 : operator. 수학적 또는 논리적인 연산을 수행하도록 지시하는 기호(symbol). 예) 산술연산자 ( + , - , / , *) 비트연산자(> , ^ , &) 대입연산자 (= , *=) 비교연산자 (== , !=) ..
import random # 랜덤 모듈 from math import gcd # 최소공배수 모듈 import itertools # 경우의수 / 수열과 조합 모듈 a = list(range(1,199)) from itertools import combinations b = list(combinations(a, 2)) number_first = [x[0] for x in b] # 각 튜플의 첫번째 element만 list 형태로 추출 number_second = [x[1] for x in b] #각 배열 순서대로 끼리끼리 //최소공배수를 구해서 //배열을 만든 다음에// max값을 찾으면 될 것같은데! def LCM(d,e): result = (d*e) / GCD(d,e) return result c = m..
모듈 - 모듈을 사용하려면 import 필요. https://jellysong.tistory.com/81 [알고리즘/Python] BOJ 1543 문서 검색 1543번: 문서 검색 세준이는 영어로만 이루어진 어떤 문서를 검색하는 함수를 만들려고 한다. 이 함수는 어떤 단어가 총 몇 번 등장하는지 세려고 한다. 그러나, 세준이의 함수는 중복되어 세는 jellysong.tistory.com https://it-neicebee.tistory.com/49?category=890500 [Python] 파이썬 웹 크롤링으로 지역별 코로나19 뉴스 정보를 크롤링해보자 지금까지 쳐놀고 다른 일 좀 하느라 글 업데이트가 뜸했음 ㅋㅋ 오늘은 네이버 뉴스에서 지역별 코로나19 뉴스를 크롤링해오는 프로그램을 제작해보자. 준비..
https://replit.com/@내깃헙이름/Day-Three-Blueprint#main.py .... https://docs.python.org/3/tutorial/datastructures.html#dictionaries 5. Data Structures — Python 3.9.7 documentation 5. Data Structures This chapter describes some things you’ve learned about already in more detail, and adds some new things as well. 5.1. More on Lists The list data type has some more methods. Here are all of the methods o..
* FUCTION - {} 대신 안에 Tab 으로 넣어서 작동시킨다 - () = press 버튼. - function( ) 안에 인자를 넣어줄 수 있음. 즉 input 가능. - return : 값을 돌려받는 함수. function이 종료됨. return 함수는 ()가 필요없음. - 문자열은 + 로 합칠 수 있다. - string 안에 변수명을 써주고 싶을 때 f를 앞에 붙여준다. 즉 문자를 변수로 만들어주는 셈. (return f"hello {name} you are {age}) - .... (((https://replit.com/내 깃헙 이름/Day-Two-Blueprint#main.py))