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
- MySQL
- flutter
- 다이어트
- IOS
- urllib
- GIT
- 함수
- port
- Excel
- MS-SQL
- ASP
- PyQt
- mssql
- 리눅스
- sqlite
- tensorflow
- pandas
- Unity
- python
- javascript
- swift
- 라즈베리파이
- PER
- 유니티
- node.js
- ubuntu
- Linux
- 맛집
- PyQt5
- 날짜
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