Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Excel
- Unity
- PER
- node.js
- 다이어트
- IOS
- Linux
- python
- pandas
- 유니티
- javascript
- 리눅스
- tensorflow
- PyQt5
- GIT
- urllib
- 맛집
- 라즈베리파이
- port
- flutter
- swift
- MS-SQL
- 함수
- PyQt
- ASP
- mssql
- MySQL
- 날짜
- ubuntu
- sqlite
Archives
아미(아름다운미소)
python null 처리방법 본문
How to test a variable is null in python
파이썬에서 null 처리 방법
try:
if val is None: # The variable
print('It is None')
except NameError:
print ("This variable is not defined")
else:
print ("It is defined and has a value")
'랭귀지 > PYTHON' 카테고리의 다른 글
python 문자열 앞 0으로 채우기 zfill() (0) | 2018.11.01 |
---|---|
for와 함께 자주 사용하는 range함수 (0) | 2018.10.31 |
[Python] 어제 날짜 구하기 (0) | 2018.10.26 |
python py2exe를 이용한 파이썬 실행파일 만들기 (0) | 2018.10.25 |
python shutil (0) | 2018.10.24 |
Comments