Beispiel #1
0
 def action_show_modules(self, split=3):
     import sys
     mod = sys.modules.keys()
     formatc = '%%-%ds' % int(80/split)
     for d in list_split(mod, split):
         self.writeln(' ' .join(map(lambda x: formatc % x , d)))
         self.pause()
Beispiel #2
0
    def action_show_modules(self, split=3):
        import sys

        mod = sys.modules.keys()
        formatc = "%%-%ds" % int(80 / split)
        for d in list_split(mod, split):
            self.writeln(" ".join(map(lambda x: formatc % x, d)))
            self.pause()
Beispiel #3
0
 def action_qt(self, split=4):
     u"""
     输出当前全部的组:    qt split=4
     split表示一行多少个。
     """
     split = int(split)
     teams = manager.team.all_team()
     for d in list_split(teams, split):
         self.writeln(" ".join(d))
         self.pause()
Beispiel #4
0
 def action_qt(self, split=4):
     u'''
     输出当前全部的组:    qt split=4
     split表示一行多少个。
     '''
     split = int(split)
     teams = manager.team.all_team()
     for d in list_split(teams, split) :
         self.writeln(' '.join(d))
         self.pause()