From 8052e5b7c0e4abd840c51cf6365f33a7fabd5931 Mon Sep 17 00:00:00 2001 From: SXHome Date: Sat, 19 Mar 2022 18:38:16 +0800 Subject: [PATCH] Lesson1 --- PythonBasic/pythonStudy.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 PythonBasic/pythonStudy.md diff --git a/PythonBasic/pythonStudy.md b/PythonBasic/pythonStudy.md new file mode 100644 index 0000000..0b298c7 --- /dev/null +++ b/PythonBasic/pythonStudy.md @@ -0,0 +1,17 @@ +# Python学习基础笔记 + +## 一. 基本输入输出 +1. print() + + 用print()在括号中加上字符串,就可以向屏幕上输出指定的文字。比如输出'hello, world',用代码实现如下: + > print('hello, world') + + print()函数也可以接受多个字符串,用逗号“,”隔开,就可以连成一串输出: + > print('The quick brown fox', 'jumps over', 'the lazy dog') + + The quick brown fox jumps over the lazy dog + + print()会依次打印每个字符串,遇到逗号“,”会输出一个空格. + +2. input() +