我正在Windows上的# This program reads columns in a csv file
import csv
ifile = open('years.csv', "r")
reader = csv.reader(ifile)
# initialization and declaration of variables
rownum = 0
year = 0
dec = 0
jan = 0
total_years = 0`
for row in reader:
if rownum == 0:
header = row #work with header row if you like
else:
colnum = 0
for col in row:
if colnum == 0:
year = float(col)
if colnum == 1:
dec = float(col)
if colnum == 2:
jan = float(col)
colnum += 1
# end of if structure
# now we can process results
if rownum != 0:
print(year, dec, jan)
total_years = total_years + year
print(total_years)
# time to go after the next row/bar
rownum += 1
ifile.close()
控制台中运行查询,如:
require_once APPPATH."third_party/stripe/init.php";
\Stripe\Stripe::setApiKey("sk_test_bB6syzsfoOqdQ4R57m7zE5Sp");
$token = Stripe\Token::create(array(
"card" => array(
"number" => $this->input->post("credit_card_no"),
"exp_month" => $this->input->post("expiry_month"),
"exp_year" => $this->input->post("expiry_year"),
"cvc" => $this->input->post("cvv")
)
));
$customer = \Stripe\Customer::create(array(
"source" => $token,
"description" =>$this->session->userdata('doctor_name'))
);
// Charge the Customer instead of the card
$charge = \Stripe\Charge::create(array(
"amount" => 2000, // amount in cents, again
"currency" => "usd",
"customer" => $customer->id)
);
但cqlsh
正在退出,没有任何消息和结果。
当我将西里尔值'іван'更改为拉丁'ivan'时 - 正在成功插入一行。
我试过Cassandra v.2.2.7和3.7
有什么问题?