All Questions

1000 questions


2 answers
2 views
0
Why is "None" coming up?

class Friend: def __init__(self, name, phone): self.name = name self.phone = phone def get_name(self, input_name): self.name = input_name def get_phone (self, input_phone): self.phone = input_p...

16 hours ago

1 answers
2 views
0
Use Python to transfer the contents of the list to Excel

filename = "File name.xlsx" book = openpyxl.load_workbook(filename) # sheet extraction sheet = book.worksheets[0] # Enter data data = [] data_value = data for row in sheet.rows: data.append([ row[0]...

1 days ago

1 answers
3 views
0
Difference between selenium and chrome driver, relationship

I am a high school student studying crawl.I use selenium and chrome driver when I crawl, but I don't know the difference between the two. Both are described as devices for automating web browsers, and...

1 days ago

2 answers
2 views
0
How can I insert the contents of Excel 2 into Excel 1 in Python?

For example, df1 and You have df2.How should I access the code to insert the contents of df2 into the blank of df1?I've used the merge or concat function, but I can't write it neatly, and it doesn't c...

2 days ago

1 answers
2 views
0
Append to a new list in the existing list

Web-crawling shopping mall, in the purchase item partThere is a button called Purchase Quantity, If sold out, there is no button, If you have multiple options (color or size), you will get different v...

2 days ago

1 answers
4 views
0
JAVA Two-Dimensional Array

static final int ROW = 4; static final int COL = 3; public static void main(String[] args) { String[][] parkingSpace = new String[ROW][COL]; System.out.println(" \t1\t2\t3"); String fill = "□"; for(...

4 days ago

1 answers
3 views
0
Python regular expression questions

pa = re.compile("(?P<A>\w+)(?):\[(?P<B>\d+):(?P<C>\d+)\]|[(?P<D>\d+)]") I want to know the meaning of the regular expression above. I understood the two (?P<A>\w+) and (?...

4 days ago

1 answers
3 views
0
It's C++

using namespace cv; using namespace std;int main() {Mat image;. image = imread("hwfig01.jpg", IMREAD_COLOR); // If (image.empty()) { cout << "Image cannot be read" << endl;} show ("output...

c++
4 days ago

1 answers
4 views
0
Python undefined name 'Function name' error

// import random print ("Name Generation") Main character = input() print "The name of the main character" f"{Heroine}") while 1: power = random.randrange(3, 9) health = random.randrange(5, 9) man...

4 days ago

1 answers
2 views
0
c6328

#include <stdio.h> int main(void) { char name[256]; printf ("What's your name?"); scnaf_s("%s", name, sizeof(name)); int age; printf ("How old are you?"); scanf_s("%d", &age); float we...

c
5 days ago
- 1 - »

© 2022 pinfo. All rights reserved.