Skip to content

Commit

Permalink
初始化python学习仓库
Browse files Browse the repository at this point in the history
  • Loading branch information
wlyfish committed Jul 10, 2022
0 parents commit c727551
Show file tree
Hide file tree
Showing 22 changed files with 512 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Python基础/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Python基础/.idea/Python基础.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Python基础/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Python基础/.idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Python基础/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Python基础/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Python基础/Python数据类型.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# _*_ coding:utf-8 _*_
# @time 2022/6/29 22:14
# @Author wly
# @name Python数据类型.py
print(type(6))
print(type("66"))
17 changes: 17 additions & 0 deletions Python基础/Python数据类型转换.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# _*_ coding:utf-8 _*_
# @time 2022/6/29 22:16
# @Author wly
# @name Python数据类型转换.py

num = "6"
# print(4 + num)
print(4 + int(num))
print(type(num))
print(str(4) + num)

# num2 = "6a"
# print(int(num2))

score = input("请输入一个数字:")
print(score)
print(type(score))
35 changes: 35 additions & 0 deletions Python基础/Python运算符.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# _*_ coding:utf-8 _*_
# @time 2022/6/29 22:39
# @Author wly
# @name Python运算符.py
print([1, 2] + [3, 4] + [5, 6])

print(3 ** 10)

print(5 / 2)
print(5 // 2)
print(type(5 // 2))

print(5.2 / 2)
print(5.2 // 2)
print(type(5.2 // 2))

# print(1 / 0)

print(5 > 2)
print(type(5 > 2))

result = 10 != 10
print(result)

num = 10
print(id(num))
b = 10
print(id(b))
print(num is b)

c = [1]
d = [1]
print((c == d))
print(id(c), id(d))
print(c is d)
8 changes: 8 additions & 0 deletions 注释/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions 注释/.idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions 注释/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions 注释/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions 注释/.idea/注释.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions 注释/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import keyword

print(1)
# print(2)
print("汉字")

a, b = 6, 6
print(a, b)

c = d = 3
print(c, d)

print(keyword.kwlist)
Loading

0 comments on commit c727551

Please sign in to comment.