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.
 
 
 

10 lines
253 B

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