Notice
Recent Posts
Recent Comments
Link
아미(아름다운미소)
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