Merge pull request #9 from cuican-wang/patch-3

Update python_base.py
master
xianhu 2016-11-07 10:36:19 +08:00 committed by GitHub
commit 21c93efeaa
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@
#-- 布尔类型bool #-- 布尔类型bool
type(True) # 返回<class 'bool'> type(True) # 返回<class 'bool'>
isinstance(False, int) # bool类型属于整所以返回True isinstance(False, int) # bool类型属于整所以返回True
True == 1; True is 1 # 输出(True, False) True == 1; True is 1 # 输出(True, False)
#-- 动态类型简介 #-- 动态类型简介