如果我正确理解您,那就不 - 您不必检查它是否不是null。
例如(今天是日期'2022-07-07'
,2022年7月7日):
SQL> with test (id, date_column) as
2 (select 1, date '2022-05-25' from dual union all -- before today
3 select 2, date '2022-12-13' from dual union all -- after today
4 select 3, null from dual -- unknown, as there's no value in DATE_COLUMN
5 )
6 select *
7 from test
8 where date_column >= sysdate;
ID DATE_COLUM
---------- ----------
2 2022-12-13
SQL>
如果您包括而不是null
null 检查,您将获得相同的结果:
<snip>
6 select *
7 from test
8 where date_column is not null
9 and date_column >= sysdate;
ID DATE_COLUM
---------- ----------
2 2022-12-13
SQL>
formGroupName =“ i”
您的模板搜索了名为 i
的formGroup,而不是由 i
的内容命名的FormGroup。请更改为
[formGroupName] =“ i”
向@Teemu大喊。他提出了正确的答案。这就是我为它起作用的工作:
if (tble_row3.cells.length) {
element.appendChild(tble_row3);
}
正确地显示具有内容并且不是显示空的行的行。
尝试这样做,
CREATE TABLE Accounts (
id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
reg_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
exp_date TIMESTAMP generated always as (reg_date + interval 4 year)
)
您最近升级了JDK / JRE吗?
我有相同的错误消息,当我降级到较旧的Java版本时,它已修复。
就像错误消息告诉您一样, -exec
不是 tar
命令的有效选项。我想您将其与查找
混合在一起,该确实提供了这样的选项(或者在特定上下文中,谓词)。
在一般情况下,要将命令的输出作为参数传递给另一个命令,请尝试 XARGS
。
tar tf MyTar.tar.gz --wildcards "*.jar" |
xargs ls
如果我完全理解您的问题,但是您需要在这里有所不同。 (另外,在脚本中不要使用 ls
。)或许?
for jar in *.jar; do
zip -q -d "$jar" \*/Abcd.class
done
如果您想检查 jar
文件是否包含带有该名称的成员,则可以在运行之前不在循环(如果不存在)中将过滤器添加到
继续zip -d
,但是在所有文件上运行它都是简单,明显且无害的(尽管您可能会收到有关没有匹配的文件的错误消息)。
处理 jar
文件后,如果您想要它们的格式,则 tar
将它们重新放在一起。
您可以使用 object.values()
和 redion()
与:
const data = [
{
id: '10000844',
text_id: '10000844-01',
},
{
id: '10000844',
text_id: '10000844-02',
},
{
id: '12000844',
text_id: '12000844-03',
},
{
id: '12000844',
text_id: '12000844-07',
},
{
id: '12000814',
text_id: '12000844-07',
},
{
id: '12002812',
text_id: '12000844-07',
},
{
id: '12000814',
text_id: '12000844-08',
},
]
const result = Object.values(
data.reduce((res, {id, text_id}) => {
res[id] ??= {id, text_id}
return res
}, {})
)
console.log(result)
更新带有 ?? =
文档
逻辑无效分配(x ?? = y)
操作员仅分配如果x为nullish(nullish或null或Undefined)
。
好的,第一件事,让您的代码工作似乎只是msgbox并撤出任何日期:
我不确定为什么但是当我运行此行时,VBA不喜欢这条线:
For Each source_date In source_month.Offset(1, 0).EntireRow
通过使用:代码来代替:
For Each source_date In source_month.Offset(1, 0).Resize(, 100)
代码似乎要运行良好(在这里我做100列,但您可以轻松地将其更改为更多)
,接下来您正在填充所有日期,而您只需要具有价值的且想要该值的日期,所以我认为您需要一些东西就像:
For Each rng In source_date.Resize(100, 0)
If rng.Interior.Color = RGB(255, 255, 255) Then
hoursWorked = rng.Value
End If
Next rng
RNG是一个范围,RGB是总小时数的背景颜色,
将其放在一起:
Public Sub hour_count_update()
Dim wb_source As Worksheet, wb_dest As Worksheet
Dim source_month As Range
Dim source_date As Range
Dim dest_month As Range
Dim rng As Range
Set wb_source = ActiveWorkbook.Worksheets("Sheet19")
Set wb_dest = ActiveWorkbook.Worksheets("Sheet20")
Set dest_month = wb_dest.Cells(wb_dest.Rows.Count, "B").End(xlUp)
wb_dest.Range("A2:C600").Clear 'cancella dati del foglio RiepilogoOre
For Each source_month In wb_source.Range("A1:A600")
source_month.Select
If source_month.Interior.Color = RGB(255, 255, 0) Then
For Each source_date In source_month.Offset(1, 0).Resize(, 100)
If IsDate(source_date.Value) Then
For Each rng In source_date.Resize(100, 0)
If rng.Interior.Color = RGB(255, 255, 255) Then
hoursWorked = rng.Value
End If
Next rng
MsgBox "It is a date"
Set dest_month = dest_month.Offset(1)
dest_month.Value = source_date.Value
End If
Next source_date
End If
Next source_month
End Sub
我没有测试工作时间,您可以看到我没有对它们做任何事情,
请让我知道如何您继续前进,或者如果我可以帮助更多!
我认为最好的方法应该是在数据库中设置 product_type
字段,并为您的前端元素创建条件显示。
详细说明,您应该为产品和服务类型创建前端。您可以在服务时隐藏产品的前端元素,反之亦然。
似乎不可能。
但是您可以直接在此处的路线上写组件。
{path:'/*', name:'404', component: function(){window.location.href="http://sf.gg"}}
List<Integer>results2=new ArrayList<>();
for (int result : results) {
results2.add(result);
}
System.out.println("Minimum: " + Collections.min(results2));
System.out.println("Maximum: " + Collections.max(results2));
System.out.println("Amount of elements: " + results2.size());
使用此插件 imei_plugin: ^1.2.0
在Android 10中获取Android设备的IMEI(国际移动设备身份),而Android的运行时许可则少于Android 10 iOS唯一标识应用程序提供商设备的字母数字字符串。
import 'package:imei_plugin/imei_plugin.dart';
String imei = await ImeiPlugin.getImei();
List<String> multiImei = await ImeiPlugin.getImeiMulti(); //for double-triple SIM phones
String uuid = await ImeiPlugin.getId();
String platformImei = await ImeiPlugin
.getImei( shouldShowRequestPermissionRationale: false );
您需要选择所有 parent 元素,然后迭代每个元素。
有两种类型的文章,最小的和10最小的文章。
在那里您有一些示例代码:
from bs4 import BeautifulSoup
import requests
page = requests.get("https://www.forexcrunch.com/category/forex-weekly-outlook/gbp-usd-outlook/page/24/")
soup = BeautifulSoup(page.content, 'html.parser')
big_article = soup.find("div", class_='col-sm-12 col-md-6')
title = big_article.find("div", class_="post-detail").find("h5")
print("Title: " + title.text)
print("Link: " + title.find("a")["href"])
author_year = big_article.find("div", class_="post-author")
print("Author: " + author_year.find("a").text)
print("Date: " + author_year.find_all("li")[-1].text)
print("---------------------")
all_articles = soup.find_all("div", class_='col-sm-12 col-md-3')
for article in all_articles:
title_author_link = article.find("div", class_="post-detail").find_all("a")
print("Title: " + title_author_link[0].text)
print("Link: " + title_author_link[0]["href"])
print("Author: " + title_author_link[1].text)
print("Date: " + article.find_all("li")[-1].text)
print("---------------------")
输出:
Title: GBP/USD Forecast May 22-26
Link: https://www.forexcrunch.com/gbpusd-forecast-may-22-26/
Author: Kenny Fisher
Date: 5 years
---------------------
Title: GBP/USD Forecast May 15-19
Link: https://www.forexcrunch.com/gbpusd-forecast-may-15-19/
Author: Kenny Fisher
Date: 5 years
---------------------
希望我能够为您提供帮助。
根据 for pycairo for pycairo :
链接页面提供以下说明:
,我想Fedora说明也适用于RHEL/CENTOS,MODULO可能使用< yum 而不是
dnf
。According to the pipy page for pycairo:
The linked page gives the following instructions:
And I guess that the Fedora instructions will work for RHEL / CentOS too, modulo possibly using
yum
rather thandnf
.错误在Linux上安装Pycairo:丢失cairo.h