我想访问 VSCode 上的 Onedrive 文件,以便我可以轻松地在 Onedrive 上同时编辑和同步我的代码,就像通过 SSH 同步文件一样。但似乎没有扩展能够连接到 Onedrive 帐户(我在 VSCode Marketplace 上搜索了关键字“onedrive”)。还有另一种方法吗?
PS:由于潜在的混淆,问题被稍微修改了。
好吧,我正在使用argparse模块,但发现多行文本作为版本信息无法很好地显示。结果显示'\n'会变成空格''。例子:
import argparse
ver_text = 'This is the\nversion text!'
parser = argparse.ArgumentParser()
parser.add_argument('-v', '--version', action='version', version=ver_text)
Run Code Online (Sandbox Code Playgroud)
$ python test.py -v
Run Code Online (Sandbox Code Playgroud)
结果:
This is the version text!
Run Code Online (Sandbox Code Playgroud)
所以这就是问题所在。我想知道如何处理。非常感谢!