返回顶部

收藏

Operators with mixed type operands convert the integer operand to floating point:

更多
print 3 * 3.75 / 1.5
7.5
print 7.0 / 2

标签:Python,Data,Type

收藏

0人收藏

支持

0

反对

0

»更多 您可能感兴趣的代码
  1. 2016-08-19 12:27:56Complex Number Multiply: the Complex part by 司马
  2. 2016-09-04 09:12:19bitwise AND by 阮小七
  3. 2016-11-21 12:58:55Define and use int by 张宋付
  4. 2016-04-23 15:06:20Code for Handling Large maxints by 山药
  5. 2016-08-19 12:35:54Decimal Floating Point Arithmetic by 山药
  6. 2016-04-23 15:24:16Use ( ) in calculation by 大猪
  7. 2016-08-19 12:56:31Convert String to integer (int) by 阿明娃儿
  8. 2016-02-04 16:00:24What's True in Python by 司马
  9. 2016-08-19 13:11:54int function by 西国の海妖
  10. 2016-08-19 13:17:28Long Integer by wubai
  11. 2019-02-21 11:47:08Thinkphp5整合微信扫码支付实例 by 好小灰灰

发表评论