fork download
  1. import fnmatch
  2.  
  3. a = 'ads_prn2c09/admarket/adfinder'
  4. pattern = '!(*ash2c08*)'
  5.  
  6. if fnmatch.fnmatch(a, pattern):
  7. print("haha")
  8. else:
  9. print("meh")
  10.  
  11. # your code goes here
Success #stdin #stdout 0.03s 9316KB
stdin
Standard input is empty
stdout
meh