Python-100-Days/Day01-15/Day02/variable4.py

25 lines
274 B
Python
Raw Normal View History

2018-03-02 00:09:06 +08:00
"""
检查变量的类型
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))