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