potreboval bych neco ve stylu
- Kód: Vybrat vše
if exist (extension exe):
a =1
else
a=0
(jednoduse napsano)
diky
Moderátor: Moderátoři Živě.cz
if exist (extension exe):
a =1
else
a=0
os.chdir("/")
a = 0
for files in os.listdir("."):
if files.endswith(".exe") and a == 0:
a = 1
from glob import glob
print glob("/*.exe")
a = 1 if glob("/*.exe") else 0
print glob("/*.exe*")
files.endswith(".exe*")
m = 0
for files in os.listdir("."):
files = files.lower()
arr=files.split(".")
if len(arr) > 1:
if (arr[-1]).startswith(exe"):
m = 1
break
for filename in os.listdir("."):
bits = filename.split(".")
if len(bits) > 1:
print bits[-1]
Uživatelé procházející toto fórum: Žádní registrovaní uživatelé a 0 návštevníků