首页 \ 问答 \ 在Excel 2016中匹配功能部件(Match function parts in Excel 2016)

在Excel 2016中匹配功能部件(Match function parts in Excel 2016)

我有这个功能:

星号(PositionParameter [[#All],[Position Revised]] = $ C94)星号(PositionParameter [[#All],[Campus Type Short]] = G $ 3) Campus Num Arbitrary]] = G $ 1),0))

我无法弄清楚它的功能。 我不知道星号是什么。 PositionParameter是工作表的名称,Position Revised是列的名称,Campus Type Short是列的名称,Campus Num Arbitrary是列的名称。 假设在第一个PositionParameter()和第二个PositionParameter()之间有一个星号。 在第二个PositionParameter()和第三个PositionParameter()之间应该有另一个星号,但它被呈现为斜体。 我把星号拿出来拼出来。 工具提示告诉我这是假设返回某种数组,但我无法弄清楚它的组件。 有人可以向我解释星号吗? 我会很感激。

谢谢,霍华德洪


I have this function:

MATCH(1,(PositionParameter[[#All],[Position Revised]]=$C94)asterisk(PositionParameter[[#All],[Campus Type Short]]=G$3)asterisk(PositionParameter[[#All],[Campus Num Arbitrary]]=G$1),0))

and I can't figure out what it does. I don't know what the asterisks are for. PositionParameter is the name of the worksheet, Position Revised is the name of a column, Campus Type Short is the name of a column, and Campus Num Arbitrary is the name of a column. There is suppose to be an asterisk between the first PositionParameter() and the second PositionParameter(). There is supposed to be another asterisk between the second PositionParameter() and the third PositionParameter(), but it is rendered as an italic. I took the asterisk out and spelled it out. The tooltip tells me this is suppose to return some sort of array, but I can't figure out its components. Can someone explain the asterisks to me? I would appreciate it.

Thanks, Howard Hong


原文:https://stackoverflow.com/questions/47495003
更新时间:2024-02-29 13:02

最满意答案

将button_sizer添加到新的父sizer似乎会导致崩溃。 尽管似乎没有合理的原因。

如果您编辑您的类以匹配以下内容,它可以工作,并按预期添加项目,而不会崩溃:

class MainFrame(wx.Frame):
    def __init__(self):
        wx.Frame.__init__(self,None)
        self.model = [0]

        self.add_button = wx.Button(self, label="add")
        self.add_button.Bind(wx.EVT_BUTTON, self.add)

        self.rebuild()

    def add(self, evt):
        self.model.append(len(self.model))
        self.rebuild()
        print 'rebuild complete'

    def rebuild(self):
        sizer = wx.BoxSizer(wx.VERTICAL)

        button_sizer = wx.BoxSizer(wx.HORIZONTAL)

        button_sizer.Add(self.add_button)

        sizer.Add(button_sizer,1)

        widget_sizer = wx.BoxSizer(wx.HORIZONTAL)
        for idx in self.model:
            widget_sizer.Add(FooWidget(self, idx), 1)
        sizer.Add(widget_sizer,1)

        print 'SetSizer'

        self.SetSizer(sizer)
        print 'Fit'
        self.Fit()

        print 'Layout'
        self.Layout()

希望有助于解决您的问题。

迈克尔


Adding the button_sizer to a new parent sizer seems to cause the crash. Allthough there doesn't seem to be a reasonable cause.

If you edit your class to match the following, it works and it adds the items as expected, without a crash:

class MainFrame(wx.Frame):
    def __init__(self):
        wx.Frame.__init__(self,None)
        self.model = [0]

        self.add_button = wx.Button(self, label="add")
        self.add_button.Bind(wx.EVT_BUTTON, self.add)

        self.rebuild()

    def add(self, evt):
        self.model.append(len(self.model))
        self.rebuild()
        print 'rebuild complete'

    def rebuild(self):
        sizer = wx.BoxSizer(wx.VERTICAL)

        button_sizer = wx.BoxSizer(wx.HORIZONTAL)

        button_sizer.Add(self.add_button)

        sizer.Add(button_sizer,1)

        widget_sizer = wx.BoxSizer(wx.HORIZONTAL)
        for idx in self.model:
            widget_sizer.Add(FooWidget(self, idx), 1)
        sizer.Add(widget_sizer,1)

        print 'SetSizer'

        self.SetSizer(sizer)
        print 'Fit'
        self.Fit()

        print 'Layout'
        self.Layout()

Hope that helps to solve your problem.

Michael

相关问答

更多
  • 你问“可能会发生什么?”。 似乎正在发生的事情是你的wx应用程序陷入循环或睡眠状态,因此不呈现任何内容,并且似乎没有响应。 知道为什么你认为它卡在你发布的代码中会很有趣。 知道它是如何工作的也很有趣......在while循环中你似乎没有任何意义,你屈服于wx来渲染更新。 因此,我不清楚如何呈现状态更新。 我只想说:如果你的代码要么挂在read(8192)上,要么在无限循环中,它会使它看起来像你的截图:没有反应。 为了避免反应迟钝,你需要在花费很长时间做某事时屈服于wx。 一种简单的调试方法是使用打印来检测 ...
  • 刚发现回答自己: http://trac.wxwidgets.org/ticket/4489 在删除最后一个“|”之后,当通配符格式不正确时,它在Mac中崩溃 在通配符中一切正常。 Just found answer myself: http://trac.wxwidgets.org/ticket/4489 It crashes in Mac when wildcard improperly formatted, after removing last "|" in wildcard everything ...
  • 我认为问题是您将相同的wx.Panel实例( self.ticketPanel )添加为窗格。 尝试为每个窗格创建一个新窗格。 I think the problem is that you add the same wx.Panel instance (self.ticketPanel) as a pane. Try creating a new one for every pane.
  • 问题出在totalSet.getDataPoints().get(0).getValue(Field.FIELD_CALORIES)asInt(); 而这将返回一个float ,您将其分配给long 。 FIX: private class getCal extends AsyncTask { @Override protected Long doInBackground(Object... voids) { float ...
  • 在您的OnPaint中,请致电: e.Skip() 在您的测试中,请致电: dial.ShowModal() 而不是dial.Show(),除非你真的想要显示一个无模式的消息对话框,我打赌你没有。 您还应该将父级设置为MessageDialog。 在这种情况下它应该是self(意味着Paint对象)。 In your OnPaint, call: e.Skip() In your Test, call: dial.ShowModal() instead of dial.Show(), unless ...
  • 受到Tim Roberts的启发,在这个wxPython用户线程中,我首先尝试在一个单独的线程中剥离启动画面,但是没有用(wxwidgets抱怨它不在主线程中)。 所以我做了我应该首先做的唯一明显的事情:在启动时长时间运行一个单独的线程。 副作用:由于启动画面现在可以对事件做出反应,因此点击时它会消失。 import wx class long_running(object): def __init__(self): bitmap = wx.EmptyBitmap(300, 150 ...
  • 我通常使用一些缩放代码,如下所示: img = wx.Image(filepath, wx.BITMAP_TYPE_ANY) # scale the image, preserving the aspect ratio W = img.GetWidth() H = img.GetHeight() if W > H: NewW = self.PhotoMaxSize NewH = self.PhotoMaxSize * H / W else: NewH = self.PhotoMaxS ...
  • 这就是你要追求的吗? import wx class Frame(wx.Frame): def __init__(self, parent): wx.Frame.__init__(self, parent) self.panel = wx.Panel(self) main_sizer = wx.BoxSizer(wx.VERTICAL) # Title self.centred_text = wx.StaticT ...
  • 将button_sizer添加到新的父sizer似乎会导致崩溃。 尽管似乎没有合理的原因。 如果您编辑您的类以匹配以下内容,它可以工作,并按预期添加项目,而不会崩溃: class MainFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self,None) self.model = [0] self.add_button = wx.Button(self, label="add") ...
  • 创建一个带有所有这些控件的新面板类将变得更加容易,然后只需添加和删除面板的实例。 面板实例可以存储在列表中。 It would be much easier to create a new panel class with all those controls parented to it, and then just add and delete instances of the panel. The panel instances could be stored in a list.

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)