python2 tag

15 questions


1 answers
156 views
0
How to Resolve IndexError

I think some int type is missing...error messageTraceback (most recent call last): File/Users/ymtk/Desktop/pyaudio/mfcc.py, line 109, in<module> mfcc = MFCC (stf.SPEC.shape[1]*2, stf.frequency) ...

1 years ago

2 answers
135 views
0
I want to move google-cloud-sdk.

Regarding the following environment, I would like to run Google-cloud-sdk.$python-VPython 3.6.8:: Anaconda, Inc.$ conda-Vconda 4.6.8$ cat/etc/os-releaseNAME=UbuntuVERSION=18.04.1 LTS (Bionic Beaver)Py...


1 answers
125 views
0
Executing exe Error Using PyInstaller on Windows 10

I used PyInstaller to exe the Python script in Windows 10.However, when I tried to run the exe, I got the following error: C:\*********\dist\********>**********--arg 1123Traceback (most recent call...


1 answers
63 views
0
What are the advantages of python's built-in function compile?I don't know when it will be used.

I use python for my work, but I haven't been able to pursue python deeply yet.While I was reading the source of a python library, I found a built-in function called compile, and I understood how it wo...

1 years ago

2 answers
124 views
0
os.madeirs takes time to actually create a directory

I searched including overseas sites, but I couldn't find a valid solution.Could you lend me some advice?Operating System: Windows When you create a directory using os.madeirs(), it takes a little time...

1 years ago

1 answers
117 views
0
OpenCV Error in Python 2.7.6

Load data from OpenCV.However, the following error occurred when compressing the image to size 28x28.Error ContentsOpenCV Error: Assertion failed(ssize.area()>0) in resize, file/build/build/opencv-...

1 years ago

2 answers
136 views
0
I want to write a regular 20-line, 24-column horse racing data sheet to CSV using beautifulsoup.

Thank you for your help, I'm a python beginner. I'm scraping horse racing data using python 2.7, beautiful group, but I'm having a hard time. I can print only one line, but I don't know which script t...


2 answers
104 views
0
The Python version changes the behavior of the is operator in the tuple.

The is operator behavior of the tuple changes depending on the version.[Code used for verification] x=1,2,2print(id(x))y = 1, 2, 2print(id(y))print(x is y)[Results] Python 2.7.17 Results (xisy is Fals...

1 years ago

1 answers
88 views
0
I want to be able to scroll in Tkinter

Thank you for your continuous support.Using Python 2.7's Tkinter, the GUI app scrolls You can do it (scroll the whole thing like when you look at a browser)I want to add a function.I tried to refer to...

1 years ago

1 answers
99 views
0
I don't really understand this error, do you mean there are two arguments?

#!/usr/bin/env pythonimport numpyimportosimport structureimport sysclass STF: def__init__(self): self.endian='>' self.chunks=['APSG'] defloadfile(self, filename): with open(RESULT20191219.txt, '...

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.