当前位置:网站首页>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''')
边栏推荐
- [learn C and fly] 4day Chapter 2 program in C language (exercise 2.5 generate power table and factorial table
- Coordinatorlayout + tablayout + viewpager2 (there is another recyclerview nested inside), and the sliding conflict of recyclerview is solved
- Connected block template and variants (4 questions in total)
- Duplicate keys detected: ‘0‘. This may cause an update error. found in
- 剑指 Offer 29. 顺时针打印矩阵
- es面试题
- Software development life cycle -- waterfall model
- CSDN article underlined, font color changed, picture centered, 1 second to understand
- Which brand of sports headset is better? Bluetooth headset suitable for sports
- Divorce for 3 years to discover the undivided joint property, or
猜你喜欢
JPM 2021 most popular paper released (with download)
OpenCASCADE7.6编译
[question] - why is optical flow not good for static scenes
No programming code technology! Four step easy flower store applet
How to batch add background and transition effects to videos?
Pat a-1165 block reversing (25 points)
CVPR 2022 | 大连理工提出自校准照明框架,用于现实场景的微光图像增强
Opencascade7.6 compilation
【liuyubobobo-玩转Leetcode算法面试】【00】课程概述
The basic steps of using information theory to deal with scientific problems are
随机推荐
trading
花一个星期时间呕心沥血整理出高频软件测试/自动化测试面试题和答案
essay structure
大厂裁员潮不断,双非本科出身的我却逆风翻盘挺进阿里
Provincial election + noi Part IV graph theory
Which kind of sports headphones is easier to use? The most recommended sports headphones
【读书笔记】程序员修炼手册—实战式学习最有效(项目驱动)
Leetcode face T10 (1-9) array, ByteDance interview sharing
No programming code technology! Four step easy flower store applet
Opencascade7.6 compilation
How to turn off debug information in rtl8189fs
What style of Bluetooth headset is easy to use? High quality Bluetooth headset ranking
Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing
leetcode2309. The best English letters with both upper and lower case (simple, weekly)
What is the principle of bone conduction earphones and who is suitable for bone conduction earphones
How to run oddish successfully from 0?
Types of exhibition items available in the multimedia interactive exhibition hall
[punch in questions] integrated daily 5-question sharing (phase II)
软件开发生命周期 --瀑布模型
[learn C and fly] 3day Chapter 2 program in C language (exercise 2.3 calculate piecewise functions)