当前位置:网站首页>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''')
边栏推荐
- [liuyubobobo play with leetcode algorithm interview] [00] Course Overview
- The middle element and the rightmost element of the shutter
- Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing
- Vsocde has cli every time it is opened js
- Mathematics in Sinorgchem: computational geometry
- LeetCode刷题(十)——顺序刷题46至50
- Sword finger offer 42 Maximum sum of continuous subarrays
- Sword finger offer II 031 Least recently used cache
- 【毕业季】研究生学长分享怎样让本科更有意义
- CSDN article underlined, font color changed, picture centered, 1 second to understand
猜你喜欢
pytest 测试框架
CVPR 2022 | 大连理工提出自校准照明框架,用于现实场景的微光图像增强
Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing
Spend a week painstakingly sorting out the interview questions and answers of high-frequency software testing / automated testing
QT实现界面跳转
New programmer magazine | Li Penghui talks about open source cloud native message flow system
超图iServer rest服务之feature查询
How to batch add background and transition effects to videos?
【带你学c带你飞】3day第2章 用C语言编写程序(练习 2.3 计算分段函数)
leetcode373. Find and minimum k-pair numbers (medium)
随机推荐
STM32__05—PWM控制直流电机
Flutter un élément au milieu, l'élément le plus à droite
Comparative analysis of MVC, MVP and MVVM, source code analysis
Face++ realizes face detection in the way of flow
[untitled]
JS slow animation
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
Query word weight, search word weight calculation
Deep learning: a solution to over fitting in deep neural networks
Realize the code scanning function of a custom layout
An analysis of circuit for quick understanding
剑指 Offer II 031. 最近最少使用缓存
es面试题
Software development life cycle -- waterfall model
What is the principle of bone conduction earphones and who is suitable for bone conduction earphones
Es interview questions
LFM信号加噪、时频分析、滤波
how to add one row in the dataframe?
设置状态栏颜色
[liuyubobobo play with leetcode algorithm interview] [00] Course Overview