Skip to content

2024Python自学笔记,记录自己学习和成长过程

Notifications You must be signed in to change notification settings

ZsmrL/Python-Tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Python-Tutorial

2024Python自学笔记,记录自己学习和成长过程

#学习python的笔记,教程为B站播放量最高的

第一章:

Python 下载和安装

编译器和解释器: 静态语言和脚本语言: ipo编程方法:

Python 数据类型

python 基本函数

print函数 ASCII码:chr

print('b')
print(chr(98))

print(ord('北'))
print(ord('京'))

open:

fp = open('note.txt','w')
print('没有毅力是不可能成功的',file = fp)
fp.close()

reload in gbk/..... #用什么编码重新加载

![[Pasted image 20240107121333.png]]

print('北京',end='-->')
print('欢迎你') #修改了换行符,在同一行输出,但下一个print还是有换行符

字符串连接:字符串和字符串之间的连接 input函数

数字型

  1. int
  2. bool
  3. float
  4. compelx

字符串型

第二章:

关键字和保留字:严格区分大小写

import keyword
print(keyword.kwlist)
print(len(keyword.kwlist))

About

2024Python自学笔记,记录自己学习和成长过程

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published