Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson20-diy1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
670af55b
authored
Aug 24, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
37e6aa21
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
146 additions
and
2 deletions
fd.py
my_client.py
s.py
fd.py
0 → 100644
View file @
670af55b
import
turtle
as
p
p
.
pensize
(
5
)
p
.
penup
()
p
.
left
(
80
)
p
.
fillcolor
(
"yellow"
)
p
.
begin_fill
()
p
.
goto
(
-
130
,
10
)
p
.
pendown
()
p
.
fd
(
80
)
p
.
left
(
30
)
p
.
circle
(
-
500
,
3
)
p
.
circle
(
-
100
,
60
)
p
.
circle
(
-
250
,
25
)
p
.
right
(
10
)
p
.
circle
(
-
110
,
100
)
p
.
right
(
12
)
p
.
fd
(
200
)
p
.
right
(
30
)
p
.
fd
(
200
)
p
.
right
(
90
)
p
.
fd
(
90
)
p
.
circle
(
-
40
,
70
)
p
.
end_fill
()
p
.
done
()
\ No newline at end of file
my_client.py
View file @
670af55b
...
...
@@ -42,6 +42,9 @@ class Note(): # 便签、笔记
def
remove
(
self
):
num
=
self
.
v
.
get
()
alist
.
pop
(
num
)
content
=
json
.
dumps
(
users
)
with
open
(
"user.txt"
,
"w"
,
encoding
=
"utf-8"
)
as
file
:
# "w"每次写入都覆盖原来的内容
file
.
write
(
content
)
self
.
canvas
.
destroy
()
app
.
show
()
...
...
@@ -50,6 +53,9 @@ class Note(): # 便签、笔记
self
.
ent
.
delete
(
"0"
,
END
)
if
info
!=
""
:
alist
.
append
(
info
)
content
=
json
.
dumps
(
users
)
with
open
(
"user.txt"
,
"w"
,
encoding
=
"utf-8"
)
as
file
:
# "w"每次写入都覆盖原来的内容
file
.
write
(
content
)
self
.
canvas
.
create_text
(
40
,
self
.
y
,
text
=
info
,
font
=
(
"宋体"
,
11
),
anchor
=
W
,
fill
=
'#FF9900'
)
self
.
select
=
tkinter
.
Radiobutton
(
self
.
canvas
,
image
=
self
.
box
,
value
=
self
.
val
...
...
@@ -98,10 +104,11 @@ def register(): # 注册验证
reg_to_login
()
def
login
():
# 登录验证
global
app
global
app
,
alist
name
,
password
=
app_login
.
get_input
()
user_name
=
users
.
get
(
name
)
if
pwd
==
password
:
if
user_name
!=
None
and
user_name
[
"password"
]
==
password
:
alist
=
users
[
name
][
"event"
]
app_login
.
root
.
destroy
()
app
=
Note
()
app
.
show
()
...
...
s.py
0 → 100644
View file @
670af55b
import
turtle
as
t
import
time
#设置初始位置
t
.
speed
(
5
)
t
.
penup
()
t
.
left
(
90
)
t
.
fd
(
200
)
t
.
pendown
()
t
.
right
(
90
)
#设置画笔大小
t
.
pensize
(
2
)
#花蕊
t
.
fillcolor
(
'red'
)
t
.
begin_fill
()
t
.
circle
(
10
,
180
)
t
.
circle
(
25
,
110
)
t
.
left
(
50
)
t
.
circle
(
60
,
45
)
t
.
circle
(
20
,
170
)
t
.
right
(
24
)
t
.
fd
(
30
)
t
.
left
(
10
)
t
.
circle
(
30
,
110
)
t
.
fd
(
20
)
t
.
left
(
40
)
t
.
circle
(
90
,
70
)
t
.
circle
(
30
,
150
)
t
.
right
(
30
)
t
.
fd
(
15
)
t
.
circle
(
80
,
90
)
t
.
left
(
15
)
t
.
fd
(
45
)
t
.
right
(
160
)
t
.
fd
(
25
)
t
.
left
(
160
)
t
.
circle
(
190
,
60
)
t
.
left
(
74
)
t
.
circle
(
227
,
57
)
t
.
end_fill
()
t
.
left
(
160
)
t
.
circle
(
-
113
,
60
)
t
.
left
(
39
)
t
.
circle
(
120
,
60
)
t
.
left
(
130
)
t
.
circle
(
110
,
60
)
t
.
circle
(
-
80
,
60
)
t
.
left
(
180
)
t
.
circle
(
80
,
60
)
t
.
circle
(
-
110
,
60
)
t
.
seth
(
-
83
)
t
.
fd
(
30
)
t
.
seth
(
0
)
t
.
fd
(
40
)
t
.
fillcolor
(
"green"
)
t
.
begin_fill
()
t
.
left
(
60
)
t
.
circle
(
-
80
,
100
)
t
.
right
(
80
)
t
.
circle
(
-
80
,
100
)
t
.
end_fill
()
t
.
right
(
137
)
t
.
fd
(
70
)
t
.
penup
()
t
.
right
(
180
)
t
.
fd
(
110
)
t
.
left
(
92
)
t
.
pendown
()
t
.
fd
(
115
)
t
.
left
(
-
90
)
t
.
fillcolor
(
"green"
)
t
.
begin_fill
()
t
.
left
(
60
)
t
.
circle
(
-
80
,
100
)
t
.
right
(
80
)
t
.
circle
(
-
80
,
100
)
t
.
end_fill
()
t
.
right
(
137
)
t
.
fd
(
70
)
t
.
penup
()
t
.
right
(
180
)
t
.
fd
(
70
)
t
.
pendown
()
t
.
left
(
250
)
t
.
circle
(
80
,
100
)
t
.
done
()
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment