我想知道是否有可能(具有内置变量)直接与在Visual Studio中从集成终端打开的当前文件一起工作,例如: >some_command $current_file (Where $current_file would be a built-in variable that calls the current active file)
什么,而不是我现在要做的,如果终端是CMD(DOS):
假设有一些有用的转换函数,例如random_spelling_error,我们想申请n次。 我的临时解决方案是这样的: def reapply(n, fn, arg):
for i in range(n):
arg = fn(arg)
return arg
reapply(3, random_spelling_error, "This is not a tes