file tag

99 questions


1 answers
115 views
0
How to insert an image as a path to a file in an image view

Put resources in drawable ImageView imgView=new ImageView(this); imgView.setBackgroundResource(R.drawable.img1);I set it up in imageView like this. Instead of registering resources in the drawable fo...


1 answers
85 views
0
What method should I use to move files?

source_files = '/PATH/TO/DIR1/*'destination_folder = '/PATH/TO/DIR2'When the source and destination are decided like that, I want to move the fileI looked up the os module, but there is no copy functi...

2 years ago

1 answers
79 views
0
Receiving and saving data from the Django app

from django.shortcuts import renderfrom django.http import HttpResponse# # Create your views here.def index(request): num =request.GET.get(num) print (num:,num) return HttpResponse('hello world')This ...

2 years ago

1 answers
89 views
0
What should I do when I want to find the location where the Python print is printed?

I have imported a lot of Python libraries and have been using theminit of any file during error correction.I accidentally copied print 'en' to py and pressed the wrong key to turn off the file window....

2 years ago

1 answers
44 views
0
Can I check the existence of the file without using try-catch?

Can I check the existence of the file without using try-catch in Python?

2 years ago

2 answers
45 views
0
I'm trying to compare the file size in Python, but what's more efficient?

I'm trying to compare the size of some files in Pythonos.path.getsize(path)It's different from comparing it with this functionf = open(~~~.txt, 'r')Would it be faster to read it and count it until the...

2 years ago

1 answers
86 views
0
What is the difference between open() and with statement when reading a file?

When reading a file,We usually use open(filename, r) or with open(filename) as fileIs there a big difference between the two?on a foreign siteIt(with statement) is designed to provide much cleaner syn...

2 years ago

1 answers
43 views
0
How do I get the extension of a file in Java?

If I have a file like /path/to/file/foo.txt, I want to get only .txt, how can I do it?Is there a related method?

2 years ago

1 answers
69 views
0
Dynamic tag generation question.

// Please fill it out here <!DOCTYPE html> <!-- Mobile Web Page Settings --> .fileBox .fileName {display:inline-block;width:190px;height:30px;padding-left:10px;margin-right:5px;line-he...

2 years ago

1 answers
46 views
0
R.java files don't come out when Eclipse develops Android.

Windows 7 R.java cannot be updated. When I added a new resource file, it didn't update at all, so I thought Eclipse would create it again when I deleted R.java, so I deleted the R.java file. But the R...

« - 8 - »

© 2024 OneMinuteCode. All rights reserved.