Use a variable to name a class in python -


suppose want following psuedocode work

method generateclass(string name, <string,type>[] attributes)        class name()              //used int               //          char b              attributes[0].[0] attributes[0].[1]              attributes[1].[0] attributes[1].[1] 

how in python?


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

unity3d - Fatal error- Monodevelop-Unity failed to start -