这是我的数组
my_array = ["9999999999", "500", "existingusercheck", "MBK9002", "TestMerchant"]
我希望跟随字符串作为输出数组
"'9999999999''500''existingusercheck''MBK9002''TestMerchant'"
注意:每个值都应引用单引号('500'
),整个输出应引用为字符串(""
)
答案 0 :(得分:0)
我认为你可以这样做:
array = ["9999999999", "500", "existingusercheck", "MBK9002", "TestMerchant"]
"'"+array.join("''")+"'"