파이썬 키워드 모음
- 최초 등록일
- 2023.01.09
- 최종 저작일
- 2022.06
- 29페이지/ 어도비 PDF
- 가격 100,000원
소개글
"파이썬 키워드 모음"에 대한 내용입니다.
목차
없음
본문내용
1. variable setting : ppt page.11
변수설정
a = 10 # '='기준 좌측면이 variable의 이름, 우측면이 설정값
2. variable setting 2 : ppt page.11
변수에 계산값 넣기
b = a*a*20 # '=' 기준 우측면의 계산값이 좌측면의 variable에 설정됨
3. print string : ppt page.3 / Source_FIle #3
string 출력
print("2018113112, 정연창") # string을 출력
4. integer(float) to string : ppt page.3 / Source_FIle #4
숫자를 문자로 바꾸기
type(str(a)) # integer인 a를 string으로 설정 float에도 동일하게 적용. type()함수로
5. Identifiers : ppt page.6
식별자
Good case: mouse, Phone, _Hello, pm12_45
''' bad case:
@iloveyou, 1245pm (must start with a letter or an underscore)
185.3cm (identifier is a sequence of characters that consists of letters, digits,
and underscores)
'''
identifier cannot be a reversed word
identifier can be of any length
6. Constants : ppt page.8 / Source_FIle #6
상수(고정된 값)
print(123)
print('HI')
print("Hi")
print('''Hi''') # 3 ways to print string constants
7. named constants : ppt page.9
참고 자료
없음