def execute(*args):
    if not args:
        sys.stdout.write("command error \n")
    projectname = args[0]
    sys.stdout.write(projectname%"create dir %s \n")
    rootpath = projectname
    os.mkdir(rootpath)
    createfile(rootpath,'startmaster.py',startmasterfile)
    createfile(rootpath,'config.json',configfile)
    createfile(rootpath,'appmain.py',appmainfile)
    
    rootpath = projectname+'/'+'app'
    os.mkdir(rootpath)
    createfile(rootpath,'__init__.py',[])
    createfile(rootpath,'apptest.py',apptestfile)
    
    rootpath = projectname+'/'+'tool'
    os.mkdir(rootpath)
    createfile(rootpath,'__init__.py',[])
    createfile(rootpath,'clienttest.py',clientfile)
    
    sys.stdout.write("create success \n")
dataset/ETHPy150Open 9miao/Firefly/gfirefly/management/commands/createproject.py/execute/swapped operands of `%`