for tag

100 questions


1 answers
74 views
0
Is it possible to use the value printed on the for statement?

I printed out the i value using the following equation.path =./file_list = os.listdir(path)file_list_csv = [file for file in file_list if file.endswith(.csv)]g = it.groupby(file_list_csv, lambda name:...

2 years ago

2 answers
143 views
0
Converting ISO2 code by Python basic country to continental name

Hello.In order to convert the country-specific ISO2 code to a continental name, try for 5 hours and then post a question because it gets stuck.First of all, I modified the code that I got through Goog...

2 years ago

1 answers
109 views
0
It's a Python question! AttributeError: 'str' object has no attribute 'text'

Hi, everyone.An error appears when trying to turn as shown below.Is it not possible to print certain strings after append through repetitive statements? items = driver.find_element(By.CLASS_NAME, 'it...

2 years ago

1 answers
119 views
0
Java Seng Basic Question (Method, make a triangle with a for statement) (Please help me...)

import java.util.Scanner;class Recursion{ //method public void star(int x){ if(x>0){ printBlank(x); printStar(x); System.out.print(\n); star(x-1); } else return; } public void printBlank(...

2 years ago

1 answers
104 views
0
I change the Python while statement to for statement, but I don't get the same execution value

###Global variable declaration part##i,k=0,0##Main code part ##i=0while i<9: if i<5: k=0 while k<4-i: print(' ', end='') k+=1 k=0 while k<i*2+1: print('\u2665', end='')###Global var...

2 years ago

1 answers
77 views
0
It's a simple code, please help me.

for i in range(2, 21): if i == 8: print() ####Source code #### print(i, end= ' ')Output value:2 3 4 5 6 7What code should be included in #### source code#### for the output to come out like this?i[0...

2 years ago

1 answers
51 views
0
Why is it different from putting a return value of a function directly in a c++ for statement conditional expression?

#include <iostream>using namespace std;#define MAXN (100000)int N;int sol[MAXN + 10];int wp, rp = 0;int que[MAXN + 10];void push(int d) { if (wp < MAXN) { que[wp] = d; ++wp; }}int front() {...

2 years ago

1 answers
86 views
0
I can't make a repeat Receive one row each in a data frame, perform an operation, and assign one to a new list

I'm going to take one line from the data frame, calculate it, and assign it to the new list one by one.If you look at it, only the number of rows 0 and 12 changes, but I don't know how to make it into...

2 years ago

1 answers
69 views
0
I want to collect Python crawling results into a data frame and save them as an Excel file with to_csv

while True: print(Getting page {}....format(page)) params[page] = page data = requests.post(url, json=params).json() # # uncomment to see all data: # # print(json.dumps(data, indent=4)) if not d...

2 years ago

2 answers
88 views
0
The coding of the exchange rate calculator using for door and tuple is blocked, so please give me a hint!

mymoney = input (ex. $100:)mymoney_sep = mymoney.split()mymoney_flo = float(mymoney_sep[0])toexch = input (Types of currency to exchange (ex. dollar, yen, euro, yuan, won):)# exchange = {'usd': 1167, ...

2 years ago
« - 10 -

© 2024 OneMinuteCode. All rights reserved.