py tag

191 questions


1 answers
48 views
0
Python SyntaxError: 'return' outside function

i2 = np.random.randint(3)j2 = np.random.randint(3)a1 = np.eye(3)[i2][j2]a2 = np.eye(3)[j2][i2]if (a1 == a2) : return Trueelse : return FalseIf i2 and j2 change positions through unspecified parts i2 a...

2 years ago

1 answers
144 views
0
I have a question about KONLPY KKMA error. No matching overloads found for kr.lucypark.kkma.KkmaInterface.morphAnalyzer(list)

KONLPY's KKMA is in use, and I put the text listed in the list, and there is an errorI didn't know how to solve the error, so I asked you this question Thank you

2 years ago

1 answers
44 views
0
Discord.py (discord.py) Specific Role-Ban Question

How do I ban everyone with a specific role in discode?

2 years ago

1 answers
55 views
0
Is there a way to load the npy in the folder at once?

It's hard to get it because I have to do location + file name if I do np.load.

2 years ago

1 answers
57 views
0
Resize when arranging images in number-fi

Is interpolation applied automatically when resizing Or should I change the image to interpolation and number-fi?

2 years ago

1 answers
117 views
0
Labeling questions during data preprocessing

There are several types of No.Fy Arrays and sequences of Arrays by appending to another listRead one number array to save the sequence.Read the next number array again and save the sequence again When...

2 years ago

1 answers
125 views
0
During torque aging, a phase input should be string, not error appears

phase input should be string, not <class 'float'> error appears I don't know how to squeeze more code;We've turned the code with reference to the collar below, and we're in progress with the dat...

2 years ago

1 answers
128 views
0
Convert function result value to over pi

import numpy as npu = np.random.randint(2,size=(1,100))print(u)print(np.size(u,1))def turbo_enc(u): K = np.size(u,1) print(K) enc = np.zeros_like(u) enc = u return encenc1 = turbo_enc(u)print(enc1)def...

2 years ago

2 answers
54 views
0
To sort the Numpy array by x array

Number Pi array is x=[x3,x6,x1,x4,x2,x5,x5] Here x1<x2<x3<x4<x5<x6y=[y3,y6,y1,y4,y2,y5,y5] Don't know that the value of y is large or small If you change x to ascending order using the ...

2 years ago

1 answers
95 views
0
(Correction) The problem of data disappearing when code is executed to delete the term

Hi, everyoneThrough the what I asked earlier, I was able to correct the disused term deletion code and get the result of actually deleting the disused term.But when I turned the code, I found that whe...

« - 19 - »

© 2024 OneMinuteCode. All rights reserved.