更新
This commit is contained in:
24
Python-100-Days/Day01-15/Day02/variable4.py
Normal file
24
Python-100-Days/Day01-15/Day02/variable4.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""
|
||||
|
||||
检查变量的类型
|
||||
|
||||
Version: 0.1
|
||||
Author: 骆昊
|
||||
Date: 2018-02-27
|
||||
|
||||
"""
|
||||
|
||||
a = 100
|
||||
b = 1000000000000000000
|
||||
c = 12.345
|
||||
d = 1 + 5j
|
||||
e = 'A'
|
||||
f = 'hello, world'
|
||||
g = True
|
||||
print(type(a))
|
||||
print(type(b))
|
||||
print(type(c))
|
||||
print(type(d))
|
||||
print(type(e))
|
||||
print(type(f))
|
||||
print(type(g))
|
||||
Reference in New Issue
Block a user