我试图在字符串插值中使用gsub
input = [0,22,["Accounting","Customer Relations"],nil,nil,nil,nil]
输入数组如下所示:
class Customer
{
list<Orders> orders;
}
class Order
{
public list<Address> ShiptoAddress;
}
class MyOrderInfo
{
Order _order = null;
public MyOrderInfo(Order ord)
{
_order = ord;
}
public string Address1
{
get { return _order.ShiptoAddress[0].Value; }
}
}
我的目标是用[)
替换[]谢谢
答案 0 :(得分:2)
假设您要更改input [1]数组的字符串表示形式:
caps = Selenium::WebDriver::Remote::Capabilities.firefox marionette: true
driver = Selenium::WebDriver.for :remote, desired_capabilities: caps
答案 1 :(得分:1)
Authentication auth = SecurityContextHolder.getContext().getAuthentication();
if(auth == null || !(auth.getPrincipal() instanceof UserDetailsImpl))
return null;
...