龙空技术网

Python基础-打印&注释

阿罗的Sky 168

前言:

现时各位老铁们对“python 打印变量地址”大致比较重视,兄弟们都需要学习一些“python 打印变量地址”的相关知识。那么小编同时在网络上收集了一些有关“python 打印变量地址””的相关内容,希望同学们能喜欢,姐妹们一起来了解一下吧!

# 使用''打印字符串print('hello python')# 使用""打印字符串print("hello python3.8")# 打印变量(字符串),%sname = 'zhangsan'print("hello %s,Nice to meet you!" % name)# 打印变量(数字),%dage = 27print("You are %d!" % age)# 打印变量(不清楚类型),%ra = 3.1417print("You print is %r" % a)# 输入打印n = input("Enter any content: ")print("Your input is %r" % n)# 单行注释'''多行注释多行注释。。。。'''"""多行注释多行注释。。。。"""

标签: #python 打印变量地址