当前位置:网站首页>Basic 01: print string
Basic 01: print string
2022-07-02 02:31:00 【weixin_ forty-seven million five hundred and fifty-eight thousa】
Print string
1. String connection
use “+” Good connection
2. Single and double quotation marks escape
1. Inside single quotation marks , Double quotation marks on the outside
2. Inside double quotes , Single quotation marks outside are ok
The backslash " Read together
3. Line break
Python Read one line and execute one line
\n Means line break
4. Three quotation marks cross line character substitution
When printing poetry , Will regard the new line as the new line of content
Code practice
print("Dad!!!")
print("Hello"+" world")
print("He said \"Let's go!\" ")
print("He said \nLet's go! ")
print(''' You can't see the Yellow River coming up Running to the sea and never returning love you''')
边栏推荐
- 研发中台拆分过程的一些心得总结
- STM32F103——两路PWM控制电机
- 2022 low voltage electrician test question simulation test question bank simulation test platform operation
- [learn C and fly] 3day Chapter 2 program in C language (exercise 2.3 calculate piecewise functions)
- Open那啥的搭建文档
- Vsocde has cli every time it is opened js
- 剑指 Offer 29. 顺时针打印矩阵
- If you want to rewind the video picture, what simple methods can you use?
- QT实现界面跳转
- Email picture attachment
猜你喜欢

Additional: information desensitization;

【毕业季】研究生学长分享怎样让本科更有意义

Spend a week painstakingly sorting out the interview questions and answers of high-frequency software testing / automated testing

JPM 2021 most popular paper released (with download)

【带你学c带你飞】2day 第8章 指针(练习8.1 密码开锁)
![[reading notes] programmer training manual - practical learning is the most effective (project driven)](/img/13/28116a74512895ad725dffed02f8bd.png)
[reading notes] programmer training manual - practical learning is the most effective (project driven)

超图iServer rest服务之feature查询

大厂裁员潮不断,双非本科出身的我却逆风翻盘挺进阿里

New programmer magazine | Li Penghui talks about open source cloud native message flow system

CVPR 2022 | Dalian Institute of technology proposes a self calibration lighting framework for low light level image enhancement of real scenes
随机推荐
How to run oddish successfully from 0?
Ar Augmented Reality applicable scenarios
Es interview questions
LeetCode刷题(十)——顺序刷题46至50
Software testing learning notes - network knowledge
JVM interview
LFM信号加噪、时频分析、滤波
What kind of good and cost-effective Bluetooth sports headset to buy
How to execute an SQL in MySQL
[untitled]
【毕业季】研究生学长分享怎样让本科更有意义
JPM 2021 most popular paper released (with download)
how to add one row in the dataframe?
The middle element and the rightmost element of the shutter
[graduation season] graduate seniors share how to make undergraduate more meaningful
[punch in questions] integrated daily 5-question sharing (phase II)
Opencascade7.6 compilation
Oracle creates a user with read-only permission in four simple steps
Leetcode question brushing (10) - sequential question brushing 46 to 50
Additional: information desensitization;