摘要:
1 #!/usr/bin/env python 2 r = round(3.6) 3 #四舍五入 4 print(r) C:\Python35\python3.exe F:/Python/2day/c7.py 4 Process finished with exit code 0 阅读全文
摘要:
1 #!/usr/bin/env python 2 i = pow(2,5) 3 #求一个数的n次幂 4 print(i) C:\Python35\python3.exe F:/Python/2day/c6.py 32 Process finished with exit code 0 阅读全文
摘要:
1 #!/usr/bin/env python 2 obj = iter([11,22,33,44]) 3 #iter 创建一个可以被迭代的对象 4 print(obj) 5 r1 = next(obj) 6 print(r1) 7 8 结果:C:\Python35\python3.exe F:/Python/2day/c4.py 11 Process finished wi... 阅读全文
摘要:
结果: 阅读全文
摘要:
结果: 阅读全文
摘要:
结果: 阅读全文