hausaufgabe--python 15- String Format

000-- to transfer the data into differnt format: binary, decimal, hexadecimal, octal

 

Running result:

 

By refering :

a -- the difference between os._exit() sys.exit() exit()

http://blog.csdn.net/taohuaxinmu123/article/details/39669495

b-- print differnt format 

http://www.pythonclub.org/python-basic/print

http://bbs.fishc.com/forum.php?mod=viewthread&tid=39140&extra=page%3D1%26filter%3Dtypeid%26typeid%3D403

 

001-- differnt format functions 

 

 

 002-- usage of format function 

 

posted @ 2017-06-06 23:09  ReedyLi  阅读(372)  评论(0编辑  收藏  举报