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
43 views
0
I want to change the tsv data file form. The value of a particular column as the column name

For example, the file form is:File name: testName: 4pSample: 4pcs Name Location Location 2 Sample 1 2 3 Withdrawal 7334 Aaa 0.1Younghee 7333 Ag 0.3Go 9334 Aaa0.1stain 830 Acca 0.2Withdrawal 7334 Bcc 0...

2 years ago

1 answers
43 views
0
Algorithmic problem: the number of cases where you have 3500 won of money and you can buy it at the supermarket without leaving any money behind

I have 3500 won of money, and I have to take this money and get the number of cases that I can buy at the supermarket without leaving any money behind.The menu includes cream bread, shrimp crackers, a...

2 years ago

1 answers
120 views
0
Example of defining a function to query an ID value when entering a Python coding ID.

Hello, I have a question.df.[df[IDColumn] == ID]If you enter the corresponding ID here, you can simply see the value accompanied by the ID. In addition to this method, Please define a function using t...

2 years ago

2 answers
65 views
0
Loading openCV images

import cv2img_color=cv2.imread('aaa.jpeg',cv2.IMREAD_COLOR)cv2.namedWindow('Color')cv2.imshow('Color',img_color)cv2.waitKey(0)cv2.destroyAllWindows()I try to import openCV and import the image to ...

2 years ago

1 answers
18 views
0
Python random

def one(): while True: print() if():def two(): while True: print() if():If it's like this, I wonder how to make the entire def one() and def two() randomly output both!!

2 years ago

1 answers
39 views
0
Raspberry Pi Gui alarm clock code error: invalid literal for int() with base 10: '2,'

Hello, everyone I am currently working on my graduation work using raspberry pie. I made an alarm clock code using qt creator gui, but this error occurs when setting an alarm. For example, if you set ...

2 years ago

1 answers
43 views
0
Read the figures from the Python text file to find the sum and the mean.

inFp = NoneoutFp = NoneinFp = open('data.txt', 'r')outFp = open('output.txt', 'w')score = inFp.readlines()score = list(map(float, score))scoresum = 0for i in score : scoresum = scoresum + iaverage = s...

2 years ago

1 answers
45 views
0
Using pyinstaller on raspberry pie

I developed a simple program from Raspberry Pi to PythonMake it an executable (exe) and run automatically at boot time, without the need for development tools when clickedYou want to make it into a ru...

2 years ago

1 answers
42 views
0
Korean alphabet separation counting, len("foot") -> 3?, "foot" [0] -> "B"?

Hi, everyone. I am inquiring because a strange phenomenon has occurred due to the recent change in the method of typing Korean on the parent site. If you look at the bottom, it's the same letter foot....

2 years ago

1 answers
127 views
0
Please tell me how to combine them according to the Python Pandas data frame conditions and calculate specific values.

with open(test.json, 'r', encoding=UTF8) as file: lines = file.readlines() json_data = [json.loads(ln.replace(\n, ))['data'] for ln in lines] df = pd.DataFrame(json_data)The structure of the df above ...

« - 373 - »

© 2024 OneMinuteCode. All rights reserved.