活動地址:CSDN21天學習挑戰賽
開頭一敘: 無論是以後學習需要或者是三年後的工作需要,都需要用到python的工具,也接著這次活動的機會,把python系統的學一遍.跟著大佬,讓python知識從入門到精通.
The definition of a representation needs to satisfy three requirements:
說明:保留字,i.e. keyword,It is a word or letter specified by a programming language that satisfies a specific identity,We cannot define these words or letters as variables
['False', 'None', 'True', 'and', 'as', 'assert', 'async', 'await', 'break', 'class', 'continue', 'def'
'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is',
'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']
There are three types of annotations:
說明:If in the future when the implementation of large-scale projects,It may not fit on one line,可以用 “ \” 來表示
示例:
a=2*3 + \
3*4+\
4*5
print(a)
#結果:38
說明:The normal output we useprint,默認輸出是換行的,如果不需要換行,在變量後面加上end=“”
#輸出
print("你好")
print("python")
print("hello",end="")
print("Python")
你好
python
helloPython