from itertools import dropwhile text = """#This is comment line 1 #This is comment line 2 public abstract T getValue(); public abstract void update(T object);""" for line in dropwhile(lambda line: line.startswith('#'), text.split('\n')): print line
public abstract T getValue(); public abstract void update(T object);
No comments:
Post a Comment