我将 csv 文件用作 dataframe 桌面上的文件。
由于每个用户都有不同的名称,生成了桌面的不同路径,因此我还将自动生成路径,无论用户的名称如何路径字符串。
这将是我今天对Stackoverflow社区的贡献!
注意:随时为此需要发布改进的模型。
Answer my own question – share your knowledge, Q&A-style
I'm use a CSV file as Dataframe, but it's inside a password-protected RAR file on the Desktop.
As each user has a different name generating a different path to the Desktop, I will also generate the path automatically regardless of the user's name, so that I can use it on any computer with Windows without having to change the path string.
This will be my contribution to the StackOverflow community today!
Note: feel free to publish improved models for this need.
发布评论
评论(1)
终端中的字符串看起来像这样:
getpass()
会要求您提供 rar 文件的密码:您将输入密码文本不会显示!
完成输入密码后,按 Enter 。
然后
print('\ 033 [a \ 033 [a')
将清除终端中的现有文本::
然后是第一个
print
print> print :然后第三<代码>打印:
The string in the terminal will look like this:
getpass()
will ask you for the password of the RAR file:You will type but the password text will not appear!
When finished typing the password, press ENTER.
Then
print('\033[A\033[A')
will clear the existing text in the terminal:then first
print
:then second
print
:then third
print
: