Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
12 Cards in this Set
- Front
- Back
- 3rd side (hint)
String |
X = "abc" |
|
|
Dict |
X = [ABC : 123] |
|
|
List |
X = [ABC, 123] |
|
|
string Split in List |
a.split(",") |
|
|
tuple |
thistuple = ("apple", "banana", "cherry") (print(thistuple[1]) |
|
|
dictionary |
thisdict= { "brand": "Ford", "model": "Mustang", "year": 1964 } print(thisdict) |
|
|
import string dict to json |
y = json.loads(x) |
|
|
dict to json (string) |
y = json.dumps(x, indent =2) |
|
|
string to dict |
dict(name = "John", age = 36, country = "Norway") |
|
|
string to list |
x = list(('apple', 'banana', 'cherry')) |
|
|
in string umwandeln |
x = str(3.5) |
|
|
Aus doch einen Datensatz abfragen |
r.headers.get('content-type') Oder r.headers['Content-Type'] |
>>> r.headers{ 'content-encoding': 'gzip', 'transfer-encoding': 'chunked', 'connection': 'close', 'server': 'nginx/1.0.4', 'x-runtime': '148ms', 'etag': '"e1ca502697e5c9317743dc078f67693f"', 'content-type': 'application/json; charset=utf-8'} |