在 2015年11月4日星期三 UTC-6下午3:45:09,input/ld...@casema.nl写道:
> I have an continues loop with "while True:"
> Now I want to use "raw_input" and when I press "s" on the keybord that it
> will
> "break" the continues loop.
>
> I tried:
> choices = raw_input
> if choises == s:
> break
>
> But even when
Hi,
If I may, I feel you are tying to address a few questions at the same time,
although they are related
1. Where to put the try/except block, inside or outside the function
2. How to deal with un-anticipated exceptions
3. How to keep record
My personal feelings are:
1. Kind of prefer try/except
在 2015年11月4日星期三 UTC-6下午10:18:33,zlju...@gmail.com写道:
> > Which would you prefer?
>
> So if I am just checking for the ConnectionError in get_html and a new
> exception arises, I will have traceback to the get_html function showing that
> unhandled exception has happened.
> Now I have to put addi
On Oct 4, 2:15 am, Amelia T Cat wrote:
> On Mon, 03 Oct 2011 10:09:59 -0700, sillyou su wrote:
> > 啊!!
>
> > I should use 127.0.0.1 instance of 0.0.0.0
>
> Theoretically either one should be fine. If you use 127.0.0.1 it will
> only expose the service to your local mac
I am running web.py on my computer
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 13, 1:14 pm, memilanuk wrote:
> On 09/12/2011 09:20 PM, sillyou su wrote:
>
> > I'm reading "Learning Python"( Chinese version). Before I go through
> > the whole book, I want to do some excises matching each charter.
> > Any tips? Any better advi
I'm reading "Learning Python"( Chinese version). Before I go through
the whole book, I want to do some excises matching each charter.
Any tips? Any better advice?
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have a file which is 3D data ([pixel_x, pixel_y, pixel_z])
I want to plot and write into other file as 1 dimension ([:, y_cut,
z_cut])
How can I do it?
--
http://mail.python.org/mailman/listinfo/python-list
I tried to use pymssql to access MSSQL 2000, with a table, I store
Chinese Character in NVarchar field, Chinese Character display
normally when I query them by MS SQL Query Analyzer under Windows or
by unixODBC under Ubuntu.
But when I query those data by pymssql or pyodbc, all Chinese
Character di
On 3月29日, 下午8时22分, Michael Bentley <[EMAIL PROTECTED]> wrote:
> On Mar 29, 2007, at 6:51 AM, Su Y wrote:
>
>
>
>
>
> > I want find the first number in extend[] which is larger than num, so
> > I wrote:
> > def find(num):
> > count=0
On 3月29日, 下午7时51分, "Su Y" <[EMAIL PROTECTED]> wrote:
> hi all,
> I can't understand how this code work, its behavior is really weird
> for me...
>
> I want find the first number in extend[] which is larger than num, soI wrote:
>
> def find(num):
> c
hi all,
I can't understand how this code work, its behavior is really weird
for me...
I want find the first number in extend[] which is larger than num, so
I wrote:
def find(num):
count=0
for elem in extend:
if elem--
http://mail.python.org/mailman/listinfo/python-list
to find which process dumped core at the promt we give
$ file core.28424
core.28424: ELF 32-bit LSB core file of 'soffice.bin' (signal 11),
Intel 80386, version 1 (SYSV), from 'soffice.bin'
from this command we know 'soffice.bin' process dumped core. Now can i
do the same using python i.e. findi
Hi , I am trying to understand myself with some basic programs in
python, I have written a small script to search for core files in the
current dir. but when i tried to execute, it is searching the core
files in the subdir also. could someone help me on how can i restrict
my code to search the file
I've struggled with this for quite a while and I'm am just not sure
what is going on. I have the following code
import os
def buildList( directory='/Users/mkonrad' )
dirs = [ ]
listing = os.listdir(directory)
for x in listing:
if os.path.isdir(x):
hi,everybody,Sorry to bother you.
i hvae seen some code like this before:
class BusinessBO :
dev __init__(slef):
#write you own code here
dev businessMethod :
#write you own code here
pass
why and when we should add the keyword "pass" ?
and some time i have seen
class S
i have a project want to develop with python.
who can tell me that how to apply "mvc" pattern to gui-design in python.
please give me some advices!
ths in advanced.
--
蓦然回首曾经岁月,
朦胧中依稀闪烁着清晰。
才发现,
原来在我的记忆深处,
还残留着宁静而又幸福的瞬间。
一世风流已飘过,转眼渐成白头翁。
--
http://mail.python.org/mailman/listinfo/python-list
17 matches
Mail list logo