![]() |
|
|||
File indexing completed on 2023-03-17 11:12:46
0001 #!/usr/bin/env python 0002 0003 from __future__ import print_function 0004 import sys 0005 0006 def main(): 0007 if len(sys.argv) < 2: 0008 print("Usage: %s decimal" % sys.argv[0]) 0009 return 0010 0011 decimal = int(sys.argv[1]) 0012 print("{0:b}".format(decimal)) 0013 return 0014 0015 0016 # ______________________________________________________________________________ 0017 if __name__ == '__main__': 0018 0019 main()
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |
![]() ![]() |