list tag

251 questions


1 answers
133 views
0
Python array

Make a=[] in Python. If you put a value in a.append, the value goes into the list of a.Is there a command to create an empty matrix just like a=[]?If you have, I would appreciate it if you could let m...

2 years ago

1 answers
53 views
0
Divide Python lists into lists

arr = [['a',' b', 'c'], ['b' ,'c' ,'d'], ['d', 'f', 'a']] brr = ['a',' b', 'c', 'b' ,'c' ,'d', 'd', 'f', 'a'] I'd like to change #listarr to brr. If you have any related methods or methods, please hel...

2 years ago

1 answers
101 views
0
IndexOfcontains, etc. make the operation strange.

//hm.get(name): 1_01.wav//sound_list: [1_00.wav,1_01.wav]//Value is as above.Log.d(asdf, String.valueOf(sound_list.contains(hm.get(name)))); //-1Log.d(asdf, String.valueOf(sound_list.contains(1_01.wav...

2 years ago

2 answers
43 views
0
[python3] I don't know why this error appears in Remove List.

a = [leo, kiki, eden]b = [eden, kiki]def s(a,b): zip = [] for a in b: zip.append(a) for i in range(len(zip)): a.remove(zip[i]) return aprint(s(a,b))I want to delete the list of a and print it out, b...

2 years ago

2 answers
126 views
0
Please help me to find the same value in the dictionary in the Python two lists and make one list

ex_list_1 = [{name:kim, age:35, height:185}, {name:Lee, age:15, height:165}] ex_list_2 = [{first_name:kim, nickname:kkk}]When there are two lists of this type, I would like to combine the dict() of ex...


1 answers
67 views
0
How do I store data (list types) pouring through a web socket sequentially without duplication?

The data that we're dealing with is like price data of stock prices, and here's the situation.How can I implement this data that is poured out in order without duplication?'''MAX_TABLE_LENTH = 200'''d...

2 years ago

1 answers
51 views
0
I want to convert one string to another in the list that stores the string.

my_list = ['\nblue\nyellow\nred, \ngreen\nblack, \npink']I want to convert \n part to @ character like the result screen below.my_list = ['@blue@yellow@red, @green@black, @pink']

2 years ago

1 answers
43 views
0
Question to put 2D array variables... (I want to code it so that it doesn't overlap!)

Hello! I'm Python beginner.The value of n,s,t,k as a variable in an array such as a n : 20~28/s,t,k : 20~27 I calculated the number of all cases and printed it out with a txt file called Noutput using...

2 years ago

1 answers
92 views
0
Replace the tuple list with a string

There is data as a list in the tuple.# The join() is not working properly in the replace the data divided by split() as a string part.If you change the elements into strings one by one, it works as yo...

2 years ago

1 answers
94 views
0
Can't I use that name when each nested list has a name in the nested list?

t7=(3, 17, 34, 57)t8=(5, 39, 57)t9=(8, 16, 23, 45, 54, 58)t10=(2, 20, 30)t11=(3, 19, 34, 57)t12=(8, 16, 27, 45, 54, 58)t13=(3, 17, 34, 57)t14=(2, 28, 30)t15=(4, 17, 34, 57)t16=(8, 16, 23, 45, 52, 58)t...

2 years ago
« - 7 - »

© 2024 OneMinuteCode. All rights reserved.