我在您的白色空间上添加了:NowRap在页脚上添加Overflow-X自动。.如果这是您的意思,请参见下面?
footer {overflow-x: auto;}
<div class="col-lg-12 col-md-12" >
<div class="card animate__animated animate__backInUp bg-color-mode">
<div class="card-header">
<h5 class="f-color-mode">Complete List</h5>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-4">
<div class="form-group">
<input
type="text"
class="form-control"
id="search"
name="search"
placeholder="Search..."
/>
</div>
</div>
</div>
<div style="white-space:nowrap;">
<div class="row">
<div class="col">
<table
id="table-data"
class="table table-striped table-hover table-sm"
style="width: 100%">
<thead>
<tr>
<th role="button" class="bg-table table-color-mode">Name</th>
<th role="button" class="bg-table table-color-mode">Address</th>
<th role="button" class="bg-table table-color-mode">Contact Number</th>
<th role="button" class="bg-table table-color-mode">Email</th>
<th role="button" class="bg-table table-color-mode">Action</th>
</tr>
</thead>
<tbody>
<tr>
<td>Juan Dawn Tsubaka</td>
<td>Mrs Smith 98 Shirley Street PIMPAMA QLD 4209 AUSTRALIA</td>
<td>+61 3 1234 1234</td>
<td>[email protected]</td>
<td class="text-center">
<a href="#"
><i
class="feather mr-2 icon-edit fa-lg btn-action"
data-toggle="tooltip"
data-placement="top"
title="Update"
></i>
</a>
<a href="#"
><i
class="feather mr-2 icon-trash fa-lg btn-action btn-red"
data-toggle="tooltip"
data-placement="top"
title="Delete"
></i>
</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<footer>
</footer>
该问题与Microsoft.EntityFrameWorkCore软件包版本有关,尝试更新/安装/重新安装Microsoft.entityFrameWorkCore 5.0软件包。
实际上很简单。当您拥有10个基本10系统(如我们的基本系统)时,它只能表达使用基础主要因素的分数。 10的主要因素为2和5。因此,1/2、1/4、1/5、1/8和1/10的主要因素都可以干净地表达,因为分母都使用了10的主要因素。相反,相反,1 /3、1/6和1/7都是重复的小数仅包含2作为主要因素。在二进制中,1/2、1/4、1/8都将干净地表示为小数。而1/5或1/10将重复小数。因此,0.1和0.2和0.2(1/10和1/5)在基本10系统中的干净小数时,在基本2系统中重复小数计算机运行。当您对这些重复的小数进行数学计算时,您最终会剩下剩菜当您将计算机的基数2(二进制)编号转换为更人性化的基数10号时,它会延续。
httpcontext.getGlobalResourceObject
方法只能将其添加到 .net Framework
而不是 .net core
。
如果要在ASP.NET Core中获取资源文件中的键值,则可以使用 istringLocalizer
如下:
1.CREATE sharoneResource.cs
in root
public class SharedResource
{
}
2.Controller
public class HomeController : Controller
{
private readonly IStringLocalizer<SharedResource> _sharedLocalizer;
public HomeController(IStringLocalizer<SharedResource> sharedLocalizer)
{
_sharedLocalizer = sharedLocalizer;
}
public IActionResult Index()
{
var data = _sharedLocalizer["Hello"]; //get the value if key=Hello
return View();
}
}
3.startup.cs:
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
public void ConfigureServices(IServiceCollection services)
{
services.AddControllersWithViews()
.AddViewLocalization(LanguageViewLocationExpanderFormat.Suffix)
.AddDataAnnotationsLocalization();
services.AddLocalization(o => o.ResourcesPath = "Resources");
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
//...
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
var supportedCultures = new[]
{
new CultureInfo("en"),
new CultureInfo("fr"),
};
app.UseRequestLocalization(new RequestLocalizationOptions
{
DefaultRequestCulture = new RequestCulture("en"),
// Formatting numbers, dates, etc.
SupportedCultures = supportedCultures,
// UI strings that we have localized.
SupportedUICultures = supportedCultures
});
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
});
}
}
资源文件
项目结构
请求url: https:// localhost:portnum/home/home home/home /index?culture = fr
。
结果:
更多详细信息您可以参考官方文档:
您的第二个变体是可行的,只需设置!
是
objectList.filter { it !is object2 && it !is object3)
==表示平等,=表示分配。
if (car == var[2] - 1) printf("YES");
那呢?我们正在利用模块缓存系统,其中只有在和存储在 sys.modules
中,该模块才会导入。
utili.py(我应该称呼 module_a.py
),
""" module_a """
import unused_module
def f():
return "something_of_value"
然后使用您的函数的客户端代码。
user.py
import sys
#we're not really doing anything here, just
#slotting in a fake entry into sys.modules
#so that it wont bother to "reimport" unused_modules
sys.modules["unused_module"] = 1
from utili import f
print(f"{f()=}")
执行user.py的
python user.py
f()='something_of_value'
输出:且清楚地,我在任何地方都没有实际 unused_module
,因此,如果 utili.py> utili.py
is首先。
py utili.py
Traceback (most recent call last):
File "/Users/myuser/explore/test_384_mockmo/utili.py", line 2, in <module>
import unused_module
ModuleNotFoundError: No module named 'unused_module'
如果任何代码试图使用 Unused_module
,那么您的 f
绝对不需要其实际存在,情况也不会顺利进行。同上对于在 utili.py
的模块加载下执行的任何代码。但是,您可以分配某种模拟,而不是刻板 。
让我们分解公式以查看是否有帮助!
鉴于 Math.random()
返回具有值0&lt; = value&lt; 1 ,当:
-
min = 1
时,公式返回1(0 *(1000-1) + 1 = 1
)和999(<代码) > 0.999999 ... *(1000-1) + 1 = 999 ) -
min = 0
,公式返回0(0 *(1000-0) + 0 = 0
)和999(0.999999 ... *(1000-0) + 0 = 999
)
, min = 0
正如您期望的那样工作但是,似乎您在公式的范围术语中缺少 +1 :
使用Math.random()在范围内生成整数随机数()是由此公式完成的:
(int)(Math.random() *((最大 - 最低) + 1)) + min
下sibling
不是 css_selector
语法,它是 xpath
语法。
您的代码应该像识别特定元素,然后使用 xpath
检查以下sibling
for order in order_table.find_elements(By.CSS_SELECTOR,
"tr[class^='order-activ_order_delivered']"):
nextelement=order.find_element(By.XPATH, "./following-sibling::tr[@class='tracking-url tracking-url-activ_order_delivered']")
或
for order in order_table.find_elements(By.CSS_SELECTOR,
"tr[class^='order-activ_order_delivered']"):
nextelement=order.find_element(By.XPATH, "./following-sibling::tr[1]")
在想使用 CSS选择器
使用可以使用它可以返回所有跟踪url。
tr[class^='order-activ_order_delivered']+tr.tracking-url.tracking-url-activ_order_delivered
代码:
for order in order_table.find_elements(By.CSS_SELECTOR,
"tr[class^='order-activ_order_delivered']+tr.tracking-url.tracking-url-activ_order_delivered"):
nextelement=order
一个简单的选项 - 如果查询您有返回所需的结果集 - 是将其用作CTE(或子查询),然后滤除行:
with temp as
-- your current query begins here
(SELECT DISTINCT td.task_id,td.cntr_nbr,lh.dsp_locn AS pull_locn,td.orig_reqmt,td.qty_pulld,
(
CASE
WHEN
((SUM(td.qty_pulld) over (partition by td.pull_locn_id)) < td.orig_reqmt) and ((SUM(td.qty_pulld) over (partition by td.pull_locn_id))-td.orig_reqmt <> 0)
THEN (td.orig_reqmt- td.qty_pulld)
END) AS units_shorted
FROM wm14.task_dtl td
INNER JOIN wm14.locn_hdr lh ON lh.locn_id = td.pull_locn_id
INNER JOIN wm14.order_line_item oli ON oli.item_id = td.item_id
WHERE EXISTS (SELECT 1 FROM wm14.msg_log ml WHERE ml.user_id = td.user_id AND ml.msg_id IN ('1060','1034') AND module = 'CTRLKEY'
AND TRUNC(td.mod_date_time) = TRUNC(ml.create_date_time)) AND td.invn_need_type IN ('53','54')
AND td.stat_code >= '90'
and td.task_genrtn_ref_nbr NOT IN (SELECT ml.ref_value_1 FROM wm14.msg_log ml WHERE ml.msg ='Undo Wave completed')
group by td.task_id,td.cntr_nbr,lh.dsp_locn,td.task_genrtn_ref_nbr,td.pull_locn_id,td.item_id,td.qty_pulld,td.orig_reqmt
-- your current query ends here; only the ORDER BY clause is moved out
)
select *
from temp
where units_shorted is not null --> filter
ORDER BY task_id, dsp_locn DESC;
您可以像这样通过
axios
.post(
"url",
{
key : value
},
{
headers: {
Authorization: "Bearer " + JSON.parse(token),
},
}
)
.then(async (response) => {
//Handel response here
})
.catch((error) => {
console.log(error);
});
意外的t_is_equal
意外的T_is_greater_or_equal
意外的t_is_istinal
意外的T_IS_NOT_EQUAL
意外的t_is_not_istinal
意外的T_is_smaller_or_equal
意外
&lt;
意外
&gt;
比较运算符,例如
==
,&gt; =
,====
,!=
,,&lt ;应仅在表达式中使用,例如
表达式。如果解析器对它们抱怨,则通常意味着围绕它们周围的parens parens不正确的削皮或不匹配的(
)。
Parens分组
特别是
,如果
带有多个比较的语句,则必须注意正确计数开放和关闭括号:这里的
如果
条件已经由终止)
您的比较变得足够复杂,如果构造而不是
Isset()与比较
捣碎
一个普通的新人是pitfal试图结合
iSSET()
或< a href =“ http://php.net/empty” rel =“ nofollow noreferrer”>empty()
与比较:甚至:
这对PHP没有意义,因为
isset
和empty
是仅接受变量名称的语言构造。比较结果也没有意义,因为输出仅是/已经是布尔值。混淆
&gt; =
更大或平等与=&gt;
数组operator两个操作员看起来有些相似,因此有时会混在一起:
您只需要记住,该比较操作员被称为“ 大于或等于”才能正确。
另请参见: if语句结构中的php
没有任何比较>
,如果它们与相同的变量名称相关,则您也无法结合两个比较:
PHP无法推断出您打算再次比较初始变量。表达通常根据操作员优先
&lt;
可以看到原始变量只剩下布尔结果。另请参阅:意外的t_is_smaller_or_equal
比较链
您无法将变量与一排运算符进行比较:
这必须分解为两个比较,每个比较都与
$ x
。这实际上是黑名单表达式的情况(由于等效运算符协会)。它在几种C风格的语言中在语法上有效,但是PHP也不会将其解释为预期的比较链。
意外
&gt;
意外的
&lt;
大于
&gt;
或小于&lt;
运营商没有自定义t_xxx
tokenizer name。虽然它们像其他所有人一样被放错了位置,但您经常看到解析器抱怨它们的字符串和捣碎的HTML::
这相当于字符串
“&lt; a href ='z”
被比较&gt;
与字面的常数Hello
,然后是另一个&lt;
比较。或者至少是PHP的看法。实际原因和语法错误是“ 终止”。也无法嵌套php启动标签:
另请参阅:
Unexpected T_IS_EQUAL
Unexpected T_IS_GREATER_OR_EQUAL
Unexpected T_IS_IDENTICAL
Unexpected T_IS_NOT_EQUAL
Unexpected T_IS_NOT_IDENTICAL
Unexpected T_IS_SMALLER_OR_EQUAL
Unexpected
<
Unexpected
>
Comparison operators such as
==
,>=
,===
,!=
,<>
,!==
and<=
or<
and>
mostly should be used just in expressions, such asif
expressions. If the parser complains about them, then it often means incorrect paring or mismatched(
)
parens around them.Parens grouping
In particular for
if
statements with multiple comparisons you must take care to correctly count opening and closing parenthesis:Here the
if
condition here was already terminated by the)
Once your comparisons become sufficiently complex it often helps to split it up into multiple and nested
if
constructs rather.isset() mashed with comparing
A common newcomer is pitfal is trying to combine
isset()
orempty()
with comparisons:Or even:
This doesn't make sense to PHP, because
isset
andempty
are language constructs that only accept variable names. It doesn't make sense to compare the result either, because the output is only/already a boolean.Confusing
>=
greater-or-equal with=>
array operatorBoth operators look somewhat similar, so they sometimes get mixed up:
You only need to remember that this comparison operator is called "greater than or equal" to get it right.
See also: If statement structure in PHP
Nothing to compare against
You also can't combine two comparisons if they pertain the same variable name:
PHP can't deduce that you meant to compare the initial variable again. Expressions are usually paired according to operator precedence, so by the time the
<
is seen, there'd be only a boolean result left from the original variable.See also: unexpected T_IS_SMALLER_OR_EQUAL
Comparison chains
You can't compare against a variable with a row of operators:
This has to be broken up into two comparisons, each against
$x
.This is actually more a case of blacklisted expressions (due to equivalent operator associativity). It's syntactically valid in a few C-style languages, but PHP wouldn't interpret it as expected comparison chain either.
Unexpected
>
Unexpected
<
The greater than
>
or less than<
operators don't have a customT_XXX
tokenizer name. And while they can be misplaced like all they others, you more often see the parser complain about them for misquoted strings and mashed HTML:This amounts to a string
"<a href='z"
being compared>
to a literal constantHello
and then another<
comparison. Or that's at least how PHP sees it. The actual cause and syntax mistake was the premature string"
termination.It's also not possible to nest PHP start tags:
See also:
PHP解析/语法错误;以及如何解决它们