Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cat.py 335B

1234567891011121314151617
  1. """cat.py
  2. a version of unix cat, tweaked to show off runproc.py
  3. """
  4. import sys
  5. data = sys.stdin.read(1)
  6. sys.stdout.write(data)
  7. sys.stdout.flush()
  8. while data:
  9. data = sys.stdin.read(1)
  10. sys.stdout.write(data)
  11. sys.stdout.flush()
  12. # Just here to have something to read from stderr.
  13. sys.stderr.write("Blah...")
  14. # end of cat.py