Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson10-3
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
6357a528
authored
Jul 16, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
4fd0e77d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
1 deletions
0.py
1.py
1.txt
diy1.py
0.py
0 → 100644
View file @
6357a528
1.py
0 → 100644
View file @
6357a528
with
open
(
r'1.txt'
,
'w'
,
encoding
=
'utf-8'
)
as
f1
:
c
f1
.
write
(
'锦瑟'
+
'
\n
'
)
f1
.
write
(
'[唐] 李商隐'
+
'
\n
'
)
f1
.
write
(
'锦瑟⽆端五⼗弦,'
+
'
\n
'
)
f1
.
write
(
'⼀弦⼀柱思华年。'
+
'
\n
'
)
f1
.
write
(
'庄⽣晓梦迷蝴蝶,'
+
'
\n
'
)
f1
.
write
(
'望帝春⼼托杜鹃。'
+
'
\n
'
)
f1
.
write
(
'沧海⽉明珠有泪,'
+
'
\n
'
)
f1
.
write
(
'蓝⽥⽇暖⽟⽣烟。'
+
'
\n
'
)
f1
.
write
(
'此情可待成追忆,'
+
'
\n
'
)
f1
.
write
(
'此情可待成追忆,'
+
'
\n
'
)
1.txt
0 → 100644
View file @
6357a528
锦瑟
[唐] 李商隐
锦瑟⽆端五⼗弦,
⼀弦⼀柱思华年。
庄⽣晓梦迷蝴蝶,
望帝春⼼托杜鹃。
沧海⽉明珠有泪,
蓝⽥⽇暖⽟⽣烟。
此情可待成追忆,
此情可待成追忆,
diy1.py
View file @
6357a528
f
=
open
(
r'1.txt'
,
'r'
,
encoding
=
'utf-8'
)
a
=
f
.
write
(
'1'
)
f
.
close
()
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