CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
jackfrued

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: jackfrued/Python-100-Days
Path: blob/master/Day01-15/code/Day02/variable4.py
Views: 729
1
"""
2
检查变量的类型
3
4
Version: 0.1
5
Author: 骆昊
6
Date: 2018-02-27
7
"""
8
9
a = 100
10
b = 1000000000000000000
11
c = 12.345
12
d = 1 + 5j
13
e = 'A'
14
f = 'hello, world'
15
g = True
16
print(type(a))
17
print(type(b))
18
print(type(c))
19
print(type(d))
20
print(type(e))
21
print(type(f))
22
print(type(g))
23
24