Notice
Recent Comments
Link
Tags
- 자바 파일 한줄씩 읽기
- mysql index 생성
- C언어
- index 생성
- tzselect
- raspi-config
- 라즈베리파이4
- node 버전확인
- java 숫자를 문자로 변환하기
- 디지털오션 클라우드서버 생성하기
- Python
- 자바 한줄씩 읽기
- npm버전확인
- 디지털오션 서버생성하기
- 파이썬
- 파이썬 반복문
- Node.js express install
- c언어 파일 읽기
- 우분투 시간변경
- 우분투 node js 설치
- ubuntu node js install
- Ubuntu timezone
- ubuntu node js
- express install
- 클라우드서버 생성
- node js express install
- node js 버전확인
- 우분투 시간설정
- 디지털오션 드로플릿
- c file read
Archives
- Today
- Total
호그래머
Python if 사용하기 23.06.26 본문
728x90
1. Python에서 if문 사용하기
is_alive=True
name="Ben"
age=99
if is_alive:
print("트루")
else:
print("펄스")
if name=="Ben":
print(name)
elif name=="Dan":
print(name)
if age==99:
print(age)
elif age==98:
print(age)
elif age==97:
print(age)
결과
끝
Python에서 if문을 사용 할 수있다.
728x90
'Python' 카테고리의 다른 글
Python while 사용하기 23.06.27 (0) | 2023.06.27 |
---|---|
Python for 사용하기 23.06.27 (0) | 2023.06.27 |
Python text 파일 읽기 - 방법1 (파일읽기) 23.06.25 (0) | 2023.06.25 |
Python text 파일 쓰기 - 방법1 (파일쓰기) 23.06.25 (0) | 2023.06.25 |
Python 날짜, 시간표현 (Date, Time) 23.01.24 (0) | 2023.01.24 |
Comments