save tag

9 questions


1 answers
110 views
0
To permanently add a directory to PYTHONPATH

You can also add directories with sys.path.append, but I understand that this will be restored to its original state when the program ends.I just want to make a code that I don't want to add again if ...


2 answers
150 views
0
Load data from Python files into a list

I'd like to bring the file (data.txt) that has the following data to the list and process it.[skkim@master test]$ cat data.txt 0.3677630.3358440.3338430.3334080.07418670.01891320.001191960.006764490.0...

1 years ago

1 answers
101 views
0
I'm trying to save the Python graph as a picture, but it's

// Enter code here'''Relationship between distance and tensile force between two objects'''from pylab import figure, axes, pie, title, savefigimport matplotlib.pyplot as plt#Draw Graphsdef draw_graph(...

1 years ago

2 answers
121 views
0
I'm curious about how to save Python Dictionary

friends = {}for i in range (0,3,1) : friends = {'name': input('name:')', 'tel':input('phone number:')', 'addr':input('address:')', 'age':input('age:')}print(friends)I'm saving the addresses of three f...

1 years ago

1 answers
118 views
0
How do I save a bitmap to a specific folder?

I'm creating a function that downloads an image from a web server and outputs it to the screen. Can I continue to save the downloaded image to a specific folder on my SD card? So what I want to do is ...

1 years ago

1 answers
89 views
0
I have a question about saving Python 2.x version in Excel.

Hello, I'm an office worker who just started learning Python.I am studying with the goal of automating Excel using Python, and I am writing because I have a questionFor example, I read Hello Python Wo...

1 years ago

1 answers
90 views
0
I need help with the Python list output.

I was happy that the answer came out earlier, but I came back to the starting point and posted the question again...The question now is, is it an address book in which you save the information of 3 fr...

1 years ago

1 answers
129 views
0
How do I save a workspace in Python?

Hello, I'm a student who just used Python. In Rstudio, you don't have to rerun the code if you save and load the workspace and write itHow do I use these features on my Python Jupiter laptop?It takes ...

1 years ago

1 answers
99 views
0
Modifying and saving Python text files

If you use the open() function in Python, you can read, write, and add text filesWhat I want is to modify the existing file and save it right away.First of all, I'll give you a quick example of what I...


© 2024 OneMinuteCode. All rights reserved.