当前位置:网站首页>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''')
边栏推荐
- 剑指 Offer 31. 栈的压入、弹出序列
- 大厂裁员潮不断,双非本科出身的我却逆风翻盘挺进阿里
- The wave of layoffs in big factories continues, but I, who was born in both non undergraduate schools, turned against the wind and entered Alibaba
- Mathematics in Sinorgchem: computational geometry
- leetcode2305. 公平分发饼干(中等,周赛,状压dp)
- How does MySQL solve the problem of not releasing space after deleting a large amount of data
- Build a modern data architecture on the cloud with Amazon AppFlow, Amazon lake formation and Amazon redshift
- A quick understanding of analog electricity
- Deep learning: a solution to over fitting in deep neural networks
- The basic steps of using information theory to deal with scientific problems are
猜你喜欢

leetcode373. Find and minimum k-pair numbers (medium)

WebGPU(一):基本概念

Coordinatorlayout + tablayout + viewpager2 (there is another recyclerview nested inside), and the sliding conflict of recyclerview is solved

【OpenCV】-5种图像滤波的综合示例

LFM signal denoising, time-frequency analysis, filtering

MySQL constraints and multi table query example analysis

No programming code technology! Four step easy flower store applet

What kind of good and cost-effective Bluetooth sports headset to buy

软件开发生命周期 --瀑布模型

STM32__ 05 - PWM controlled DC motor
随机推荐
Divorce for 3 years to discover the undivided joint property, or
STM32__ 05 - PWM controlled DC motor
flutter 中间一个元素,最右边一个元素
es面试题
C return multiple values getter setter queries the database and adds the list return value to the window
CSDN article underlined, font color changed, picture centered, 1 second to understand
Leetcode face T10 (1-9) array, ByteDance interview sharing
JVM interview
Flutter un élément au milieu, l'élément le plus à droite
A quick understanding of analog electricity
剑指 Offer 62. 圆圈中最后剩下的数字
How to batch add background and transition effects to videos?
Calculation (computer) code of suffix expression
Logging only errors to the console Set system property ‘log4j2. debug‘ to sh
Opengauss database backup and recovery guide
Software testing learning notes - network knowledge
Deep learning: a solution to over fitting in deep neural networks
What is the function of the headphone driver
A quick understanding of digital electricity
If you want to rewind the video picture, what simple methods can you use?