Python之路Day01
Python之路Day01
基本数据类型
counter = 100 # 整型变量
miles = 1000.0 # 浮点型变量
name = "runoob" # 字符串
print(counter)
print(miles)
print(name)
# a = 1
# b = 'a'
# c = "asd" 等同于下
a, b, c = 1, 'a', "asd"
print(a, b, c)
a = 4 + 3j # 复数
print(type(a))
print(isinstance(
原创
2022-04-05 16:10:31 ·
835 阅读 ·
0 评论