P
P
Pdksoxdk2016-11-09 13:22:24
MySQL
Pdksoxdk, 2016-11-09 13:22:24

How to remove quotes and commas from SQLite response?

Good afternoon!
How to remove quotes and commas from SELECT response in Python?
I do everything as in the documentation.
https://docs.python.org/3.4/library/sqlite3.html
I get the answer:
(35.14,)
How can I remove this comma?
Thank you!
PS I can't paste the code from my phone))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander X, 2016-11-09
@Pdksoxdk

c.select('...')
row = c.fetchone()  # (35.14,)
rowitem = row[0] # 35.14

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question