首页 \ 问答 \ 有关|正则表达式| ?? 点理解啊``!?

有关|正则表达式| ?? 点理解啊``!?

系  XS 日  睇到 电脑爱好者 度有个叫|正则表达式|的东东 ! 那的什么``?
更新时间:2024-03-30 17:03

最满意答案

web 层应该调用service层,在service层才调用dubbo的service是比较合理的,因为在service层可能会调用多个dubbo service,这些都属于业务逻辑代码,在这里可以进行单元测试如果你在web层,单元测试实现比较困难,结构的划分也比较混乱!

其他回答

不明白啊 = =!

相关问答

更多
  • web 层应该调用service层,在service层才调用dubbo的service是比较合理的,因为在service层可能会调用多个dubbo service,这些都属于业务逻辑代码,在这里可以进行单元测试,如果你在web层,单元测试实现比较困难,结构的划分也比较混乱!
  • O(logn) + O(n) = O(n) “有人告诉我,我的代码应该遵循O(logn)+ O(n)的复杂性指导原则” - 不知道你的代码应该做什么,没有人能回答其合理的复杂性应该是什么。 请参阅Big O表示法 O(logn) + O(n) = O(n) "I was just told by someone that my code should follow the complexity guideline of O(logn) + O(n)" - without knowing what you ...
  • 你去了 这可能是在O(n!)时间运行的函数中最简单的例子(其中n是函数的参数): void nFacRuntimeFunc(int n) { for(int i=0; i
  • 我认为这是务实的做法 O(logN)永远不会超过64.实际上,只要术语像O(logN)一样“小”,你必须测量以确定常数因素是否胜出。 也可以看看 使用Ackermann功能? 引用自己的评论另一个答案: [Big-Oh]“分析”只对至少O(N)的因素很重要。 对于任何较小的因素,大哦分析是无用的,你必须测量。 和 “使用O(logN)你的输入大小是很重要的。” 这是问题的全部要点。 当然这在理论上是重要的 。 OP要求的问题在实践中是否重要? 我认为答案是否定的,没有,并且永远不会是一个数据集,其中logN ...
  • 我的理解是O(1)不一定是常数; 相反,它不依赖于所考虑的变量。 因此,哈希查找可以相对于散列中的元素的数量被称为是O(1),但是不是相对于散列的数据的长度或散列中的元素的比例。 混淆的另一个因素是大O表示法描述了限制行为。 因此,对于小值N的函数f(N)可能确实显示出很大的变化,但是如果N接近无穷大的极限相对于N是恒定的,那么说O(1)仍然是正确的。 My understanding is that O(1) is not necessarily constant; rather, it is not d ...
  • 第一个循环是O(N 2 ),因为它执行N 2个步骤。 每个步骤都执行内循环,其中涉及N个步骤,所以有N 2 * N或N 3个步骤,算法为O(N 3 )。 The first loop is O(N2) because it executes N2 steps. Each of those steps executes the inner loop, which involves N steps, so there are N2 * N or N3 steps, and the algorithm is O( ...
  • 你在每次迭代时重置dirs和spks,所以基本上每次循环运行时它都会启动一个新的列表。 在循环外获取dirs和spks声明应该可以解决问题。 You reset dirs and spks at every iteration, so basically it start a fresh new list every time your loop runs. Getting the dirs and spks declaration outside the loop should do the trick. ...
  • 对于某个常数k x = O(n)基本上表示x <= kn 。 因此x = O((O(n))对于某个常数p意味着x <= pO(n) ,这意味着某些常数q x <= pqn 。 令k = pq 。 那么x = O((O(n)) = O(n) 。 换句话说, O(O(f(n))) = O(f(n)) 。 我很好奇,你在哪里看到这样的符号被使用? x = O(n) basically means x <= kn for some constant k. Thus x = O((O(n)) means x <= p ...
  • 让我们看看这些函数及其总和的渐近极限。 一,上限: F1 = o(n*log(n)), F2 = O(n) = o(n*log(n)), so F1 + F2 = o (n* log(n)) 第二,下限:我们知道F2是O(N),但是对于我们所知的全部,F1可以是零,或者在零和n * log(n)之间的任何地方。 所以我们可以肯定地说F1 + F2不是o(N)。 我会让你把所有这些都用'对于每个常数C而言,你自己存在一个索引n'。 编辑:道格拉斯指出,大哦和小哦只是上限,严格来说,你根本不能说下限。 这是绝 ...
  • 是的,你可以说这是一个O(nlogn) 。 当你试图估计算法的复杂性时,你要从所有部分开始(选择每个部分中最差的操作而忽略快速操作 - 嘿它只是一个估计)。 第一部分是nlogn,第二部分是n。 因为你不想/可以/需要它是准确的。 O(nlogn + n) - 或 - O(nlogn)+ O(n) - > nlogn比O(n)增长得快,因此你可以忽略O(n) - > O(nlogn) 这就是功能增长的速度有多快 - 想想它就像它是巨大的那么你会明白为什么你可以忽略增长较慢的功能。 有关更详细的说明: htt ...

相关文章

更多

最新问答

更多
  • 您如何使用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)