Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python suanfa #9

Open
wants to merge 33 commits into
base: python_learn
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
db8ae8e
Merge pull request #7 from diaoyuqiang/python_learn
diaoyuqiang Jun 9, 2021
2f693c5
Delete python基础 directory
diaoyuqiang Jun 9, 2021
fffccf3
Delete python面向对象 directory
diaoyuqiang Jun 9, 2021
3110005
Delete vim学习笔记 directory
diaoyuqiang Jun 9, 2021
4ae74c3
Delete read.py
diaoyuqiang Jun 9, 2021
d9444c5
Delete list.py
diaoyuqiang Jun 9, 2021
c237db5
Create README.md
diaoyuqiang Jun 9, 2021
fe2afc5
suanfa
diaoyuqiang Jun 9, 2021
13fc81a
Create README.md
diaoyuqiang Jun 9, 2021
f6fc323
算法
diaoyuqiang Jun 11, 2021
eb00520
算法
diaoyuqiang Jun 11, 2021
838b5cd
算法
diaoyuqiang Jun 11, 2021
0530092
"测试1"
diaoyuqiang Nov 2, 2021
cfb545b
Create test_2
diaoyuqiang Nov 2, 2021
2adfc17
"测试1"
diaoyuqiang Nov 2, 2021
be96c6d
"测试3"
diaoyuqiang Nov 2, 2021
9594c99
12
diaoyuqiang Nov 2, 2021
1f03d25
dyq
diaoyuqiang Nov 2, 2021
2be4bd7
dyq
diaoyuqiang Nov 18, 2021
cd8c272
Merge remote-tracking branch 'origin/python_suanfa' into python_suanfa
diaoyuqiang Dec 24, 2021
579619e
dyq
diaoyuqiang May 18, 2022
14689e6
Create README.md
diaoyuqiang Aug 31, 2022
29871db
Update README.md
diaoyuqiang Aug 31, 2022
442fe2c
Update README.md
diaoyuqiang Aug 31, 2022
d643c92
Update README.md
diaoyuqiang Aug 31, 2022
a0184ce
Update README.md
diaoyuqiang Aug 31, 2022
02e066f
Update README.md
diaoyuqiang Aug 31, 2022
bc2fd10
Update README.md
diaoyuqiang Aug 31, 2022
b88f883
Update README.md
diaoyuqiang Aug 31, 2022
af0808f
Update README.md
diaoyuqiang Aug 31, 2022
9163ce6
Update README.md
diaoyuqiang Aug 31, 2022
6e14d82
Update README.md
diaoyuqiang Aug 31, 2022
7c2283c
Merge remote-tracking branch 'origin/python_suanfa' into python_suanfa
Sep 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .idea/.gitignore

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

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

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

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

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

6 changes: 6 additions & 0 deletions .idea/vcs.xml

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

8 changes: 8 additions & 0 deletions 01汉诺塔问题(递归).py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def hanoi(n, a, b, c):
if n>0:
hanoi(n-1, a, c, b)
print("从 %s 移动到 %s " % (a, c))
hanoi(n-1, b, a, c)


hanoi(2, "A", "B", "C")
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python learn
22 changes: 22 additions & 0 deletions deque模块(双向队列).py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from collections import deque
# q = deque()
# q.append() # 队尾进队
# q.popleft() # 队首出队
#
# # 双向队列
# q.appendleft() # 队首进队
# q.pop() # 队尾出队

# def tail(n):
# with open('text.txt', 'r') as f:
# q = deque(f, n)
# return q
#
# for line in tail(5):
# print(line, end="")

q1 = deque(maxlen=2) # 从右边添加,满了从左边剔除
q1.append(1)
q1.append(2)
q1.append(3)
print(q1)
4 changes: 0 additions & 4 deletions list.py

This file was deleted.

104 changes: 0 additions & 104 deletions python基础/01_认识Python.md

This file was deleted.

Loading