python tag

Python is a high-level, interpreted, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation.

Python is dynamically-typed and garbage-collected. It supports multiple programming paradigms, including structured (particularly procedural), object-oriented and functional programming. It is often described as a "batteries included" language due to its comprehensive standard library.

Guido van Rossum began working on Python in the late 1980s as a successor to the ABC programming language and first released it in 1991 as Python 0.9.0. Python 2.0 was released in 2000 and introduced new features such as list comprehensions, cycle-detecting garbage collection, reference counting, and Unicode support. Python 3.0, released in 2008, was a major revision that is not completely backward-compatible with earlier versions. Python 2 was discontinued with version 2.7.18 in 2020.

Python consistently ranks as one of the most popular programming languages. It is used by many organizations and companies. Pixar, Disney, Instagram and the developers of the Linux Kernel are among many of it's high-profile users, which includes many developers of Free and Open source software.

Reference: WIKIPEDIA

4650 questions


1 answers
355 views
0
I am having trouble getting the error 'int' object has no attribute 'grid'.

We are creating a program to display images of the numbers entered.(For example, if you type 987 you will see 9,8,7 images on canvas.)For more information, set the integer value (int) to str and then ...

1 years ago

1 answers
300 views
0
Gaussian_filter fails when executing CSRNet code using SciPy

Create density map annotations from Person Head Position Annotations in CSRNet for Crowd counting models.Traceback (most recent call last): File /path/to/directory/make_dataset.py, line 67, in<modu...


1 answers
426 views
0
Understanding Multiple Dictionary Comparisons in Python

I'm a Python beginner.The values are in the same group from left to right.For example, in group 1, one of a in A is one group, and another group is two of a in B, one of b in C, and one of a in D, and...

1 years ago

1 answers
471 views
0
Unable to execute pygame.

I did pip install python, and it disappears as soon as python launcher starts for a second when I run pygame.Why?

1 years ago

1 answers
359 views
0
Pattern extraction using Python regular expressions

You want to extract a specific pattern using Python's regular expression.(It doesn't matter if there's a better way than regular expression)For example,-> Hello. Today is (12.05.26). 789261-12.A nu...

1 years ago

2 answers
244 views
0
Understanding Comparison of Multiple Dictionary Values in Python

I'm a python beginner.dict1 = {group1:[a, a, b, a], group2:[a, a, a, a, a]}dict2={group1:[1, 2, 1, 1, 1, group2:[1, 1, 1, 2, 3, 4]}This is the same group from the left of the values.For example, in gr...

1 years ago

1 answers
433 views
0
Add dataframe values of the same structure without column names

Add data frames with the same structure without column names, I wrote like this, but names=['time', 'traffic']df1=pd.read_csv(r'file1.csv', index_col=0, names=cols_name)df2=pd.read_csv(r'file2.csv', i...

1 years ago

1 answers
312 views
0
EXTRACTION METHOD OF MULTIPLE CONDITIONS

If you want to extract January 1stdf=df.query('date + area.str.contains('January 1')')If you want to extract Tokyo on January 1stdf=df.query('Date + Area.str.contains('January 1st.+Tokyo')')If you wan...

1 years ago

1 answers
257 views
0
I want to save my Print results to my desktop.

import pandas as pddf = pd.read_csv(PSD online data1.csv, thousands=',')from scipy.stats import pearsonrfrom scipy.stats import spearmanrdf.corr()import pandas aspdfrom scipy import statsstats.pearson...

1 years ago

1 answers
447 views
0
I want an event to happen when I click on a particular image on tkinter.

How do I make an event happen when I click on an image?(Viewing images on tkinter.) a=tkinter.PhotoImage(file=○○.png)  canvas.create_image(x,y,image=a)I would like to click on this image to generate a...

1 years ago
« - 5 - »

© 2024 OneMinuteCode. All rights reserved.