Day1—#100 Days of coding

孙子民
2023-12-01
  1. print()

1:第一个function_ print()

2:""与‘’ string and code

3:换行的backslash

print("Hello World!\nHello World!")

4:学习string的概念 

String Concatenation

5:Indentation

6:Syntax error

7:code block 就是感觉是一行代码

8:input() function
A promt for the user

9:Python Variables

10.len()计算字符 working with string but end up as a integer

11:Data Types

12:type() 
#to find out which kind of type is
Once you print it , you will know.

13:type conversion/type casting
str(  ) float(  ) 

14:

print(6/3)
float2.0

15:

1)+

2)-

3)*

4)/

5)** 次方

12:Subscript__pull out a number(begin from 0)

"Hello"[4]
print("Hello"[4])

13:Integer

123_456_789

14:Float

3141.59

15:Boolean

True \ False

 类似资料:

相关阅读

相关文章

相关问答