博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
2021年 人工智能AI重点分析 第一章 python中print输出的用法重点
阅读量:4144 次
发布时间:2019-05-25

本文共 219 字,大约阅读时间需要 1 分钟。

1、print函数用法

print("你好吗?")

print("hello")

注意:在括号内使用“ ”或‘ ’将字符串组合起来。

print("你好吗?",end="")

print("hello")

注意:这里的end=“ ”函数用来不使用换行使用。结果输出如下

你好吗?hello

 

2、print打印输出多个内容

print("大哥","大哥","你好吗?")

注意:使用“,”分割输出多个内容,输出结果如下

大哥 大哥 你好吗?

转载地址:http://aduti.baihongyu.com/

你可能感兴趣的文章
查看文件是否被其他进程访问
查看>>
字符编码详解
查看>>
python使用dpkt分析wireshak报文(Modbus规约)
查看>>
css中的IFC
查看>>
CentOS 6.5下 mysql用户root登录不了
查看>>
windows + tomcat 部署web服务 http 改为https访问方法
查看>>
Windows系统下Apache 服务器启动以及过程中产生问题的解决办法
查看>>
Oracle服务说明
查看>>
异常收集(三):Missing artifact com.oracle:ojdbc6:jar:1.0 两种解决方案
查看>>
异常收集(四):Plugin execution not covered by lifecycle configuration
查看>>
异常收集(五):Io 异常: The Network Adapter could not establish the connection
查看>>
JSP中的转义字符
查看>>
SQLException: The user specified as a definer ('root'@'%') does not exist
查看>>
Linux 操作指令收集
查看>>
CentOS 7下卸载MySQL方式(转)
查看>>
CentOS7 安装MySQL 5.6.43
查看>>
使用Java 导入/导出 Excel ----Jakarta POI
查看>>
本地tomcat 服务器内存不足
查看>>
IntelliJ IDAE 2018.2 汉化
查看>>
基于S5PV210的uboot移植中遇到的若干问题记录(一)DM9000网卡移植
查看>>