windows - How do I use a variable to sub for typing a class name in Python? -


To define each directory is my current way of invoking it using a group of classes and files like this Imported System Import OS Class HDD: Global Hair, Generator, Type Child = ["Directory 1", "File 1 -TTT"] Mother = "Computer" Type = " Local drive "file 1_txt = [" Hello World "," Read "] Category Index 1 (): Global Child, Generator, Process And hair = ["file 1 dwt", "file2.txt"] mother = "hdd" type = "die" file 1_txt = ["Hello world if" direct ": global command, split, current directory command = input Current directory = "Command: Current directory for return." Child: print (return + "[[[current + directory +" & gt; "]" "[" Hello world again ... "," read " Current + directory. Type + "]")

when I enter dir He uses Nd, stared at me, but class HDDs to use CurrentDirectory need it, that is a way of working, or the whole thing and make it more efficient?

Note: I am trying to make a copy of the Windows Command Line for a game and it is working from the Windows File System in Python. / P>


Comments