# Strings

A string is a sequence of values that represent Unicode code points. All the code points in the range U+0000 - U+10FFFF can be represented in a string. Python doesn’t have a char type; instead, every code point in the string is represented as a string object with length 1. The built-in function ord() converts a code point from its string form to an integer in the range 0 - 10FFFF; chr() converts an integer in the range 0 - 10FFFF to the corresponding length 1 string object. str.encode() can be used to convert a str to bytes using the given text encoding, and bytes.decode() can be used to achieve the opposite.

document https://docs.python.org/

# 标准数据类型

• Python3 中有六个标准的数据类型：
• Number（数字） 123
• String（字符串） ‘abc’/“abc”
• List（列表） []
• Tuple（元组） ()
• Sets（集合） ({})
• Dictionary（字典）{key:value}
*

I have a tuple of tuples from a MySQL query like this:

I’d like to convert all the string elements into integers and put it back nicely to list of lists this time:

I tried to achieve it with eval but didn’t get any decent result yet.

# urllib.request

## Response

encoding:gzip

when unzip the body,we can see:

Python3教程

httbin.org