Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Commit c003b17

Browse files
HTML to Markdown
1 parent 2cb3047 commit c003b17

File tree

1 file changed

+3
-7
lines changed
  • Scripts/Miscellaneous/HTML_to_Markdown

1 file changed

+3
-7
lines changed

‎Scripts/Miscellaneous/HTML_to_Markdown/main.py‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
# Created the README file for this project using index.html and main.py files
1717

1818
# Opening a new file
19-
file = open("README.md", "w")
20-
21-
# Writing into the README.md file
22-
file.write(markdown)
23-
24-
# Closing the file
25-
file.close()
19+
with open("README.md", "w") as file:
20+
# Writing into the README.md file
21+
file.write(markdown)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /