如何用记事本创建py文件_如何使用记事本创建带日期的日志或日记文件
如何用记事本创建py文件
Notepad has been the standard text editor included in Windows for many years, allowing you to create and edit plain text files. But, did you know you can also use Notepad to keep a dated log or journal? It’s very easy and we’ll show you how.
记事本多年来一直是Windows附带的标准文本编辑器,使您可以创建和编辑纯文本文件。 但是,您知道您也可以使用记事本来保存已过时的日志或日志吗? 这非常简单,我们将向您展示如何操作。
Open Notepad and type .LOG
in all caps on the first line of the new text file.
打开记事本,然后在新文本文件第一行的所有大写字母中键入.LOG
。
Select “Save As” from the “File” menu.
从“文件”菜单中选择“另存为”。
Navigate to the folder in which you want to save your log or journal file. Enter a name for the file in the “File name” box and click “Save”. You can give the file any name you want.
导航到要在其中保存日志或日志文件的文件夹。 在“文件名”框中输入文件名,然后单击“保存”。 您可以为文件指定任何名称。
The time and date are not added to the file until you close and reopen the file, so click on the “X” button in the upper-right corner of the Notepad window to close it.
在关闭并重新打开文件之前,不会将时间和日期添加到文件中,因此请单击“记事本”窗口右上角的“ X”按钮以将其关闭。
Reopen the text file you saved. The time and date are entered automatically, and the cursor is placed on the next line ready for you to start typing your log or journal entry. Save the file when you’re done and close Notepad.
重新打开您保存的文本文件。 时间和日期是自动输入的,并且光标位于下一行,可供您开始键入日志或日记条目。 完成后保存文件,然后关闭记事本。
The next time you open the file again, the time and date are added to the end of the file. Your file will start looking like the image at the beginning of this article. You can move or rename the file and the date and time will still be inserted every time you open the file.
下次再次打开文件时,时间和日期将添加到文件末尾。 您的文件将开始像本文开头的图像一样。 您可以移动或重命名文件,并且每次打开文件时仍会插入日期和时间。
翻译自: https://www.howtogeek.com/258545/how-to-use-notepad-to-create-a-dated-log-or-journal-file/
如何用记事本创建py文件