py tag

191 questions


1 answers
128 views
0
Questions during Python Scrapy tutorial

Hi, everyone.I'm asking you a question because I don't know anything while studying while following the scratch tutorial.The code is as follows.def parse(self, response): for href in response.css(ul.d...

2 years ago

2 answers
54 views
0
Create a two-dimensional array with 2d coordinates as elements in numpy

Hello, I'm asking you a question because I encountered a difficulty in creating an array with numpy.Now we want to create a two-dimensional array with two-dimensional coordinates (x, y) as an element....

2 years ago

1 answers
49 views
0
I want to extract columns of certain conditions from Numpy.

I want to extract columns of certain conditions from Numpy. An array of numpy was obtained using Pandas in the dataset.[[0.2 0. 0. ... 0. 2. 2. ] [0.2 0. 0. ... 0. 2. 2. ] [0.55 0. 0. ... 0. 0. 0. ] [...

2 years ago

1 answers
100 views
0
How do I copy the Python list?

I just put it in the sauce below, and when list1 changes, list2 changes, tooFor me, list2 should be [1,2,3] continuously. I don't want to turn the door around and copy each and every one of themPlease...

2 years ago

2 answers
54 views
0
I want to know how to run pypy or cyton on the window.

I installed an anaconda 3 (python 3.6) version in a Windows environment and am working on it.The Python language itself is simple, so it is not difficult to write the source itself, but I felt that if...

2 years ago

1 answers
135 views
0
How do I copy an array in Java?

There's a value [1,2,3,4,5] in the array A, and even if you copy the value of A to B and change A to [6,7,8,9,10], B wants to remain as [1,2,3,4,5]for(int i=0; i<5; i++){ B[i]=A[i]}I did it like th...

2 years ago

1 answers
95 views
0
Python Deep Radiation

Hello, I'm asking you a question because I'm having a hard time copying the object instance.import copyclass exC: a = None b = NoneinstA = exC()instA.a = 5instA.b = 5instB = copy.deepcopy(instA)print(...

2 years ago

1 answers
71 views
0
Come out. more than the value of the transform fourier sympy

from sympy import fourier_transform, exp,symbolsfrom sympy.abc import x, ka=fourier_transform(exp(-x**2), x, k)s=symbols('s')Ori=(s)*exp(-(x**2)/(s**2))FT=fourier_transform(Ori,x,k)a.subs({k:1}).evalf...

2 years ago

1 answers
79 views
0
There is an error in the import 도와 Please help me!

Input Code from scapy.all import*Error File sniffer0_with_scapy.py, line 1, in from scapy.all import* File C:\python\lib\site-packages\scapy\all.py, line 16, in from .arch import * File C:\python\lib...

2 years ago

1 answers
66 views
0
Output a graph to Sympy.

Until now, we have created a graph using mathplotlib as a value using python's numpy.When defining a function in numpy, both x and y values came out in a list format, so I made a graph, but when I def...

2 years ago
« - 15 - »

© 2024 OneMinuteCode. All rights reserved.