Indem Du das Script mit pythonw.exe startest.DeKugelschieber hat geschrieben:Kann man irgendwie verhindern das sich das python.exe Fenster mit öffnet?
MfG
HWK
Code: Alles auswählen
command.go.*.py=C:\Programme\Python26\pythonw -u "$(FileNameExt)" $(1)
Code: Alles auswählen
c = 'p1'
parameter_dict = {'p1min': p1min, 'p1max': p1max}
for i in xrange(parameter_dict[c + 'min'], parameter_dict[c + 'max']):
Code: Alles auswählen
>>> mylist = [[1,2,3,4,5,1,1,1,2,3],[2,3,4,5,1,7,8,1,2,1]]
>>> sum(x.count(1) for x in mylist)
7
Code: Alles auswählen
all(c.islower() for c in t)
Code: Alles auswählen
t.islower()
Code: Alles auswählen
>>> filter(lambda x: x in '1234567890-', 'las|6-1-1643-1438-1')
'6-1-1643-1438-1'