My laptop, a Toshiba Satellite running Python 3.1 and Vista 64-bit
SP2, with the speakers on and otherwise working, won't give me a beep:
>>> from winsound import Beep
>>> Beep(500, 500)
Traceback (most recent call last):
File "", line 1, in
Beep(500, 500)
RuntimeError: Failed to beep
Plea
"Григор" wrote in message
news:acd355e80912180634l1c7a545fo7be9d5e99138b...@mail.gmail.com...
Hi
Can I send date and time like Hex in to the Serial port or file.
from time import *
It preferable to just use "import time"
import time
def TimeMake():
John Filben wrote:
Can someone please let me know how to read a file one record at a time (just
say fixed block for now - see small example below) and assign columns to
fields. Then reference the field names with if-then-else logic.
Sample Fixed Block File:
John98762
John82634
John11234
Tha
> Why negative indexes when fields lengths are known?
I'll admit I made a few assumptions based on what I could glean from the OP:
* names will vary in length in a questionnaire or poll (which this
appears to be)
* answers will always be represented by a single digit
* area code (at least in US)
On Fri, Dec 18, 2009 at 8:57 AM, John Filben wrote:
> Can someone please let me know how to read a file one record at a time (just
> say fixed block for now - see small example below) and assign columns to
> fields. Then reference the field names with if-then-else logic.
>
> Sample Fixed Block Fi
Serdar Tumgoren dixit:
> > Thank you - can you please assume that the data provided is the following:
> >
> > Columns 1 - 4 = Name (in record 1 of example = "John")
> > Column 5 = Answer1 (in record 1 of example = "9")
> > Column 6 = Answer2 (in record 1 of example = "8")
> > Column 7 = AreaCode
I'm reposting John's follow-up question (below) to the list.
> Thank you - can you please assume that the data provided is the following:
>
> Columns 1 - 4 = Name (in record 1 of example = "John")
> Column 5 = Answer1 (in record 1 of example = "9")
> Column 6 = Answer2 (in record 1 of example = "8
> Can someone please let me know how to read a file one record at a time (just
> say fixed block for now - see small example below) and assign columns to
> fields. Then reference the field names with if-then-else logic.
>
> Sample Fixed Block File:
>
> John98762
> John82634
> John11234
>
Hi John,
Can someone please let me know how to read a file one record at a time (just
say fixed block for now - see small example below) and assign columns to
fields. Then reference the field names with if-then-else logic.
Sample Fixed Block File:
John98762
John82634
John11234
Thank you.
John Filben
Scott Nelson wrote:
On Thu, Dec 17, 2009 at 09:32:44PM -0800, Benjamin Castillo wrote:
What is URL to online Python interpreter?
There is also http://codepad.org/ which also supports lots of languages
(Python, Ruby, Perl, PHP, C/C++...). Pretty slick. You can also use it as
a public pastebi
>
> On Thu, Dec 17, 2009 at 09:32:44PM -0800, Benjamin Castillo wrote:
> > What is URL to online Python interpreter?
>
There is also http://codepad.org/ which also supports lots of languages
(Python, Ruby, Perl, PHP, C/C++...). Pretty slick. You can also use it as
a public pastebin (this link w
I think you mean a multiset not a necklace. A necklace is invariant under
rotations and reflections aabb=abba=bbaa=baab and abab=baba. Seems that some
people name them bags instead of multiset. Maybe this can help you finding
more examples? I see that you got a few already.
/Robert
Från: tutor
Hi
Can I send date and time like Hex in to the Serial port or file.
from time import *
def TimeMake():
'''Formating time and data (dd-mm-yy hh:mm) and change it like ASCII'''
Time=list(localtime()) #get Time and Date
Time[0]=str(Time[0])#Make (
On Fri, Dec 18, 2009 at 12:54 AM, Michael Morrissey wrote:
> I'm looking for an efficient way to create all the unique, non-duplicated
> permutations of a list (I believe these are called "necklaces" in
> combinatorics). I need to do this without actually generating every possible
> permutation (w
may be this can be helpful:
http://blog.bjrn.se/2008/04/lexicographic-permutations-using.html
On Fri, Dec 18, 2009 at 6:01 PM, R. Alan Monroe wrote:
>
> > I'm looking for an efficient way to create all the unique, non-duplicated
> > permutations of a list
>
> This may or may not help:
> http://c
> I'm looking for an efficient way to create all the unique, non-duplicated
> permutations of a list
This may or may not help:
http://code.activestate.com/recipes/190465/
Alan
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscripti
Michael Morrissey dixit:
> I'm just a philosophy teacher, and I don't know much about mathematics or
> computers. I'm writing a python program (not the best language for this
> topic, but it is what I know), and I need to solve a problem which requires
> more knowledge than I have. I'm hoping you
17 matches
Mail list logo