由于MSYS64,我在Windows上使用Bazel时遇到问题:
ERROR: C:/users/ximo.hi/_bazel_ximo/4qw2ezwb/external/java_image_base/image/BUILD:6:1: error executing shell command: 'bazel-out/host/bin/external/gzip/gzip.exe -d < external/java_image_base/image/000.tar.gz > bazel-out/x64_windows-fastbuild/bin/external/java_image_base/image/000.tar.gz.nogz' failed (Exit 127): bash.exe failed: error executing command
cd C:/users/ximo.hi/_bazel_ximo/4qw2ezwb/execroot/com_telefonica_baikal
C:/msys64/usr/bin/bash.exe -c bazel-out/host/bin/external/gzip/gzip.exe -d < external/java_image_base/image/000.tar.gz > bazel-out/x64_windows-fastbuild/bin/external/java_image_base/image/000.tar.gz.nogz
C:/users/ximo.hi/_bazel_ximo/4qw2ezwb/execroot/com_telefonica_baikal/bazel-out/host/bin/external/gzip/gzip: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)
我尝试使用WSL的bash和gzip运行相同的命令,它运行得很好.有没有简单的方法告诉Bazel使用内置的WSL bash而不是MSYS64?
我试图将'¡'字符(¡
在HTML中)放在我的一个jQuery UI对话框按钮中,但我无法弄清楚它是如何工作的.这是我的代码:
registerhtml.dialog({
modal: true,
title: 'Registro en entreSartenes',
resizable: false,
buttons: [
{
text: "¡Regístrate!",
click: function(){
$(this).dialog('close');
connect();
}
},
{
text: "No gracias",
click: function() {
$(this).dialog('close');
}
}
]
});
Run Code Online (Sandbox Code Playgroud)
当对话框弹出时,我实际上进入"¡Regístrate!"
了我的按钮.我也尝试将未转义的文本直接放在JS代码中("¡Regístrate!")但是当它显示时我会得到奇怪的字符.
有谁知道这方面的解决方案?
鉴于这样的事情:
struct Example {
a: i32,
b: String,
}
Run Code Online (Sandbox Code Playgroud)
是否有任何内置方法或任何我可以实现的特性可以让我获得一个元组(i32, String)
?
我发现Python中两个相同字符串('fraiser')的字符串比较失败了.使用时repr(str1)
,repr(str2)
我会得到不同的结果,但我不知道如何解释它们或为什么它们会返回不同的东西.有帮助吗?
>>> repr(list(lowerAndMakeSet(fileChunks))[3])
"'frasier'"
>>> repr(list(lowerAndMakeSet(c))[2])
"['f', 'r', 'a', 'i', 's', 'e', 'r']"
Run Code Online (Sandbox Code Playgroud)