def a(c):
global b;
b=c
def d():
print(b)
然后再:
#encoding=gbk
import 测试
测试.a(56)
测试.d()
py
用文件模块
作为类
,避免恶心的self
.完全是可行的.
def a(c):
global b;
b=c
def d():
print(b)
然后再:
#encoding=gbk
import 测试
测试.a(56)
测试.d()
py
用文件模块
作为类
,避免恶心的self
.完全是可行的.
上一篇:新浪消除头部固定
下一篇:尽量将参数作为构的模板参数
参考:
日历插件。。。
Py的Taichi库
1、.py文件 当我们编写Python代码时,我们得到的是一个包含Python代码的以.py为扩展名的文本文件。要运行代码,就需要Python解释器去执行.py文件。 Python 最常用格式就是 .py (另一较常用格式为 .py
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M