1.通过学习python
import time
as t
print(t
.localtime())
我竟然才知道
import time as t
是用t代表time
2.还有就是关于为什么要import一个,因为虽然python里面包含时间变量,但是不会自动加载这个函数,需要import在可以自动加载。 3.自己写的模块hongchao1.py
#关于简单的加法运算
a
=int(input("请输入a="))
b
=int(input("请输入b="))
c
=a
+b
print("结果为:c=",c
)
调用自己的模块
var foo
= 'bar';
然后输出结果为:
```javascript
var foo
= 'bar';
转载请注明原文地址: https://yun.8miu.com/read-106838.html