说我有一个文件,文件中有100行代码。 1-90是python类代码。 91-100是使用该类的一些代码。
line 1 - class Test:
line 90 - end of class Test
line 91 - t = Test()
line 92 - input = [1,2,3,4,5]
line 93 - output = t.run(input)
line 94 - print(output)
现在我按以下顺序进行更改
所以我想知道是否有办法做到这一点?还是要求太多?因为它必须跟踪所有行。但是,如果撤消历史记录中已经保存了行号,那么我认为这样做并不难。