美文网首页
Python notes

Python notes

作者: Golden_humble | 来源:发表于2018-06-17 14:28 被阅读0次

a to the power 2: the code is

for item in range(5):
    print(item**2)
    
0
1
4
9
16

the operator is **, for example, if we want a \times a \times a, we should write a**3

相关文章

网友评论

      本文标题:Python notes

      本文链接:https://www.haomeiwen.com/subject/setweftx.html