for tag

100 questions


1 answers
87 views
0
Python 3 Code Questions...

// Enter your code hereimport datetime # API for 4 weeks Top20 statistics Date Processing for real timenow = datetime.datetime.now() # Current dateweeks4 = now + datetime.timedelta(weeks=-4) #current ...

2 years ago

1 answers
136 views
0
I have a question for you. (Second)

import pandas as pd import pandas_datareader.data as web from pandas import Series, DataFrame import datetime import matplotlib.pylab as plt import numpy import seaborn as sns stock = {'msft' : 'MSFT'...

2 years ago

1 answers
77 views
0
Python for Moon

a = ['123']b = ['345', '456', '675', '678']for i in b: if i not in a: b.remove(i)print(b)The desired result value of b is [], but why is only the first element deleted?

for
2 years ago

1 answers
134 views
0
Python Excel row Repeat

Hello. I'd like to list the number of ranges in ExcelFor example, if 1.5 is entered, you want to implement it in a format that increases by 0.5 from -1.5 to 1.5. But I don't know what to do with the r...

2 years ago

1 answers
109 views
0
There's a problem with the repeat statement

import randomlst = list()for i in range (0,10,1) : lst.append(random.randint(0,100))print(lst)maxidx = 0for i in range(0,10,1): if lst[maxidx]<lst[i] : maxidx=itmp =lst[maxidx]lst[maxidx] = lst[9]...

2 years ago

1 answers
137 views
0
I found something strange in the factory calculation, so I'm asking you a question!

1.#include <stdio.h>int main(void){ int a,i; scanf(%d,&a); for(i=1; i<a; i++) { a = a*i; } printf(%d,a); return 0;}2.#include <stdio.h>int main(void){ int a,i; scanf(%d,&a); fo...

2 years ago

1 answers
152 views
0
I have a question about creating an Excel file!!!

import openpyxl# You must create an empty excel file named sample.xlsx in the same folder as the py file.excel_document = openpyxl.load_workbook('same.xlsx')sheet1 = excel_document.get_sheet_by_name('...

2 years ago

1 answers
96 views
0
I have a question about the value of for statement, break, and return.

Here in the for statementWhat is the meaning of Return? And I want to know when you use break and return.

2 years ago

2 answers
80 views
0
To click only the button for a particular pattern id during Python crawling

If there are multiple buttons with similar IDs, click all buttons and If you don't have the id of that button, you want to create a code that doesn't do anythingIn the case of similar IDs, the front i...


1 answers
139 views
0
I have a question for Python web crawling.

Hi, everyone.I'm a beginner at Python.I would like to print out the equipment name and usage time on the equipment monitoring site using web crawling.This code has been configured so far, and if you p...

2 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.