Ansichten: QuotePaste - CodePaste - NoPaste
Codesnippet eingetragen am 23.11.2014 um 23:33
Von: Michael
Sprache: python
Beschreibung: Write without newline, neasted block of letters and stuff :-) (XML Homework)
CodeSnippet:
  1. >>> import sys
  2. >>> for letter in range(97,123):
  3. ... sys.stdout.write('<!ENTITY '+chr(letter)+' \"')
  4. ... for count in range(15):
  5. ... sys.stdout.write('&'+chr(letter-1)+';')
  6. ... sys.stdout.write('">\n')
  7.