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.

printf.py 216 B

123456789
  1. """printf, fprintf, sprintf"""
  2. def printf(_str, *args):
  3. print(_str % args, end='')
  4. def fprintf(_file, _str, *args):
  5. print(_str % args, end='', file=_file)
  6. def sprintf(_str, *args):
  7. return (_str % args)