dictionary tag

93 questions


2 answers
65 views
0
Read Python csv file to group players into teams and save them in dictionaries

I am currently teaching myself dictionary and list. There's something I can't understand, so I'm uploading it.First of all, the csv file is written with open on Python and opened.import csvwith open(p...

2 years ago

1 answers
62 views
0
If the name is the same as Python csv phone number, add the member number and shipping number

If the phone number and name are the same, I would like to put the shipping number at the back of the member number and send it to a new csv file.Please give me some tips on what to do.

2 years ago

1 answers
73 views
0
Quick questions about Python Dictionary

This is part of the Aegis Publishing Algorithm book.I'm reviewing it again, but I don't understand it no matter how much I look at it.There are several questions in related communities, but no one has...

2 years ago

1 answers
76 views
0
Dictionary ciphertext problem hint.

dictionary = {a: b, b: c, c: d, d: e, e: f, f: g, g: h, h: i, i: j, j: k, k: l, l: m, m: n, n: o, o: p, p: q, q: r, r: s, s: t, t: u, u: v, v: w, w: x, x: y, y: z, z : a, : }password = h knud xntdef ...

2 years ago

1 answers
59 views
0
Python dict list difference

I have a question about the way List and Dict are called in Python.Personally, I thought that dict and list object calling method were the same, but the result was completely different from what I exp...

2 years ago

1 answers
70 views
0
Which method do you prefer when updating dict?

When updating and adding elements of a dict object, I don't know how to do it neatly.I understand that the following 2 methods are possible, which of the two do you prefer?There may be factors that af...

2 years ago

1 answers
84 views
0
[Python] With a repeat statement, defaultdict append

dfs[0], dfs[1] to dfs[8] data.from transformers import AutoTokenizerfrom collections import defaultdicttokenizer = AutoTokenizer.from_pretrained(bert-base-cased, do_lower_case = True)# Number zeroword...


1 answers
70 views
0
Creating Python nested dictionary lists into data frames Question

For example, the following nested dictionary lists are listed: a = [ {'info' : {'name' : 'hahaha', 'status' : 'True'} , 'price' : 500} ]I'd like to change it to the following data frame. 'name' 'stat...


1 answers
57 views
0
This is a question about the Python parking fee calculation program.

answer = {'1234': {'IN': '07:30', 'OUT': '15:15', 'parking_duration': 465, 'parking_fee': 24000}, '2580': {'IN': '07:35', 'OUT': '08:45', 'parking_duration': 70, 'parking_fee': 4000...

2 years ago

1 answers
95 views
0
Python Dictionary while statement registration code

Please help meI was looking for it for 4 hours and this is the code I came up withIt works, but I can't print out the last word added. TT: Please save meㅠ

« - 9 - »

© 2024 OneMinuteCode. All rights reserved.