Well, depending on the situation, you either want to make a class or return the data, then pass it in as an argument, the latter is probably what you want given your code, so, for example:
def main():
...
r = do_something()
...
return r
def two(r):
...
do_something_else(r)
...
r = main()
two(r)
If this was happening within something you could define as an entity, you could do it in a class:
class Main():
def main(self):
...
self.r = do_something()
...
def two(self):
...
do_something_else(self.r)
...
main = Main()
main.main()
main.two()
However, in this case, this is unnecessary as you are creating a class that doesn't really encapsulate anything.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…