如下代码中访问abc三种类型变量
a = 1
b = "hello"
c = [1, 2, 3]
print(a)
print(b)
print(c)
输出结果:
1
hello
[1, 2, 3]
可以通过直接使用变量名来访问a,b,c三种类型变量。在代码中,分别使用print()函数打印了这三个变量的值。
原文地址: https://www.cveoy.top/t/topic/bY7e 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
a = 1
b = "hello"
c = [1, 2, 3]
print(a)
print(b)
print(c)
输出结果:
1
hello
[1, 2, 3]
可以通过直接使用变量名来访问a,b,c三种类型变量。在代码中,分别使用print()函数打印了这三个变量的值。
原文地址: https://www.cveoy.top/t/topic/bY7e 著作权归作者所有。请勿转载和采集!