首页 > 代码库 > hausaufgabe--python 15- String Format

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 

技术分享

 

hausaufgabe--python 15- String Format