返回顶部

收藏

convert integers to octal and hexadecimal strings with a string formatting expression:

更多
print '%o %x %X' % (64, 64, 255)

标签:Python,Data,Type

收藏

0人收藏

支持

0

反对

0

»更多 您可能感兴趣的代码
  1. 2016-02-11 10:46:081 is true in Python by Solon.Ring
  2. 2017-03-13 21:15:13Mixed-type conversions by 山药
  3. 2017-04-04 13:23:59oct and hex function by xwz
  4. 2016-05-30 16:25:19hex literals by jack.chen
  5. 2016-08-19 12:10:45In Python any non-zero integer value is true; zero is false. by 山药
  6. 2016-11-11 16:35:20Tools for Working with Lists by 司马
  7. 2016-08-19 12:27:56Complex Number Multiply: the Complex part by 司马
  8. 2016-09-04 09:12:19bitwise AND by 阮小七
  9. 2016-11-21 12:58:55Define and use int by 张宋付
  10. 2016-04-23 15:06:20Code for Handling Large maxints by 山药
  11. 2016-08-19 12:35:54Decimal Floating Point Arithmetic by 山药

发表评论