1,175 Posted Topics
Re: I would rewrite your code like this: [code=python]import os import zipfile import datetime today = datetime.date.today() yesterday = (today + datetime.timedelta(days=-1)) zfilename = "c:\\crunchtime\\CT" + yesterday.strftime('%m%d%y') +".zip" # test it print zfilename tFile = zipfile.ZipFile(zfilename, "w") directory = "c:\\crunchtime" files = os.listdir(directory) for file in files: if os.path.isfile(file): fullpath = … | |
Re: Just some initial observations: How are you importing pylab? Do you have module numpy installed? Pylab needs that internally. Where does finTempNum come from? If it's a list then use: etemp = finTempNum[i] | |
Re: If you don't mind learning regex, which is almost another language, but used by many popular computer languages for text manipulation: [code=python]import re p = re.compile(r'[;,.]') s = 'hi;your,face.is;on,fire' print p.sub('_', s) # hi_your_face_is_on_fire [/code] | |
Re: You need to ask this sort of thing in the Tech Talk forum. | |
Re: [QUOTE=babybuff205;695004]I need help any one ???? link exchange possible <URL SNIPPED>[/QUOTE]Linking to a website for commercial gains is called spam and is frowned upon! | |
Re: Do you trust the Phone Companies? After all they all too easily went along with the Bush/Chainy 'spy on your customer game'. They could intercept your signal and change it to vote Republican all the way! | |
Re: [QUOTE=meedo4ever;693931]Iam new user nice to meet you[/QUOTE]Welcome! It would be nice if you could let us know a little about you and your skills. | |
Re: [QUOTE=Makgopelo;694499]Hello everyone, I am a newbie her and also to the python programing language, I m trying to learn wxPython........[/QUOTE]Welcome, see you in the DaniWeb Python Forum then. Read though the "Starting wxPython" sticky and ask question in the Python forum. Many of us are glad to help! [url]http://www.daniweb.com/forums/thread128350.html[/url] | |
Re: Hallo P2MS! What are you interested in and what skill do you want to learn? | |
Re: Hello Kid! What are you interested in and what skills do you want to learn? | |
Re: While the fates permit, live happily; life speeds on with hurried step, and with winged days the wheel of the headlong year is turned. | |
Re: Hallo Sharky! What are you interested in and what skills do you want to improve? | |
Re: This thread should be called: "God's Matter and God's Energy" | |
| |
Yup, here are the hypocrites! [url]http://www.youtube.com/watch?v=wQK1al91drs[/url] | |
Re: Come on people, you need to do your homework yourself or you will not learn anything! Salem's advice is your best start. | |
Re: Creative people use Macs. | |
Re: This will show you one way to do this: [url]http://www.daniweb.com/forums/post694993-77.html[/url] | |
Re: Nice educational toy, for grown-ups too. We had one around the house for years. | |
Re: You might want to move this to TechTalk Hardware, that's were the experts are. | |
Re: Something like this can do: [code=python]import datetime today = datetime.date.today() yesterday = (today + datetime.timedelta(days=-1)) filename = "CF" + yesterday.strftime("%m%d%y") + ".csv" print filename # for instance --> CF092108.csv [/code] | |
Re: Pirate Meeting Fun: [url]http://www.eonline.com/uberblog/b29981_yo-ho_yo-ho_some_booty_pirate_day.html[/url] Got to leave! Got to run over to Arrrrrrrrrrrrrrby's for one of those great sandwiches. | |
What's the preferred way to pass a string to and from a function? | |
Re: [QUOTE=jwenting;691656]Other: hanging, drawing, and quartering comes to mind. First hang them from the neck until NEARLY dead. Next drag them through the city behind a horse (or car). Then tear out their intestines out of their living bodies. After that attach each limb to a horse (or car) and tear … | |
Re: Ernest Bevin (England Politico): "If you let that sort of thing go on, your bread and butter will be cut right out from under your feet." | |
Re: Shalom and howdy-do Lab! What are you interested in and what skills are you anxious about? Don't spend too much time in the Geek's Lounge. The stick-in-the-muds will pull you down to their level and make a conservative out of you. Who needs more of those? :) | |
Re: The widget wx.FileDialog() is most likely in the core DLL of wx, which is written and compiled C++. So the button label of the widget itself cannot be altered without going back to the C++ source code and recompiling. Not a task for the faint at heart. You could however … | |
Re: [QUOTE]“We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defence, promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity, do ordain and establish this Constitution for the United States … | |
Re: ACME Cemetery Marker Ltd.: "People are dying to get our products." | |
Re: [QUOTE=jwenting;516690]there are things in the sky that are at some stage unidentified, these are UFOs. Once they are identified (as they invariably are) they're UFOs no longer. So yes, there are UFOs but no, they're not extraterrestrial spaceships. And yes, there's likely life on other planets but no, they're not … | |
Re: ANCHORAGE, Alaska (AP) -- Gov. Sarah Palin may eventually have said ''no thanks'' to a federally funded Bridge to Nowhere. But a bridge to her hometown of Wasilla, that's a different story. A $600 million bridge and highway project to link Alaska's largest city to Palin's town of 7,000 residents … | |
Re: [QUOTE=jasimp;683214]Has anyone tried [URL="http://www.google.com/chrome"]Google Chrome[/URL] yet? It's Google's web browser they released today for the first time as a public beta. Still quite buggy but it's looking pretty nice. If you try it lets hear what you think.[/QUOTE]It's free, how can it be buggy? Buggy software is only written by … |
The End.