求a的n次幂/方,在python中,仅用2个星表达,如2**10表示2的10次方。神奇!

如在课程中说道:"In Python we can do exponentiation by using a star star. This is what we would write mathematically as to to the power 10. So 2 to the power 10 is 1024.”

笔记:udacity计算机科学导论- 课程11/19 python取幂, DRAM 存储原理、容量、速度

1 KB = 2 ** 10

1MB = 2 ** 20

1GB = 2 ** 30

1TB = 2 ** 40

1byte = 8 bits(light switch)


2GB = 2**30 * 2 *8 ~ 17billion light switches


DRAM的读写延迟latency大概是12 nanoseconds/纳秒,1纳秒 = 10亿分之一秒

相关文章:

  • 2022-01-15
  • 2022-01-18
  • 2021-04-13
  • 2022-12-23
  • 2021-07-08
  • 2021-10-25
  • 2021-08-12
  • 2021-10-02
猜你喜欢
  • 2021-05-20
  • 2021-08-23
  • 2021-07-28
  • 2021-12-07
  • 2022-12-23
  • 2021-05-26
相关资源
相似解决方案