我有一个字符串,我想在它的前后添加双引号 class Solution(object):
def reverseWords(self, s):
a = []
b = []
a = s.split(" ")
for i in reversed(a):
b.append(i)
string = " ".join(b)
return string 期望=“蓝色是天空”实际=蓝色是天空
我有一组数组,每个数组都有相同的长度,其中2个是排序的
我从这个变量开始: var sky = 0,3,4,5,6,7,8,9,10,11,12,14,16,17;var ter = [];
我必须以这种方式分析每个天空项目:对于每个天空项目,我必须找到天空项目和sky+1之间的“距离”,然后从天空项目和sky+1+1等。所以
var ter = 3-0
var ter = 4-0
var ter = 5-0
var ter = 6-0
var ter = 7-0
var ter = 8-0
var ter = 9-0
var ter = 10-0
var ter = 11-0
var ter
我使用的是Solr 7.6,文档结构如下:
{
"source_ln":"en",
"source_text":"the sky is blue",
"target_ln":"hi",
"target_text":"आसमान नीला है",
},
{
"source_ln":"en",
"source_text":"the sky is also called