lampahome writes:
> I have two categories A,B, and A has 2 items A1,A2, and B have 2 items B1,
> B2.
>
> I have two class A and B, and A will handle A1,A2, B handle B1,B2.
>
> I want to parse one of A1,A2,B1,B2 to script and generate the corresponding
> class(object).
>
> Ex: Both in class A and B
On 08Nov2018 19:30, Annie Lu wrote:
# -*- coding: UTF-8 -*-
... f = open('/Users/annielu/Desktop/namelist1801.txt')
namelist1801txt = f.read()
f.close()
namelist1801txt
'\xe9\x99\x88\xe5\xb7\x8d\n\xe8\x83\xa1\xe6\x99\xba\xe5\x81\xa5\r\xe9\xbb\x84\xe5\x9d\xa4\xe6\xa6\x95\r\xe6\x9d\x8e\xe6\x98\x
# -*- coding: UTF-8 -*-
... f = open('/Users/annielu/Desktop/namelist1801.txt')
>>> namelist1801txt = f.read()
>>> f.close()
>>> namelist1801txt
'\xe9\x99\x88\xe5\xb7\x8d\n\xe8\x83\xa1\xe6\x99\xba\xe5\x81\xa5\r\xe9\xbb\x84\xe5\x9d\xa4\xe6\xa6\x95\r\xe6\x9d\x8e\xe6\x98\x9f\xe7\x81\xbf\r\xe5\x88\x98\
I have two categories A,B, and A has 2 items A1,A2, and B have 2 items B1,
B2.
I have two class A and B, and A will handle A1,A2, B handle B1,B2.
I want to parse one of A1,A2,B1,B2 to script and generate the corresponding
class(object).
Ex: Both in class A and B, all have func1(), func2().
What
I like old scientific instruments & that sort of thing, & am wondering
what libraries I could use for programmatically generating
mathematical scales, ideally able to display the result in the GUI &
save it as a png (or other standard graphics format). Ideally, I'd
like to be able to write code li
On 11/7/2018 8:52 PM, NoHaxAllSwagg wrote:
I have been experiencing difficulty while trying to run scripts on my IDLE
software, considering that when I run my program, I get an error at the top of
the page in the “Python 3.7.1” area, highlighting the seven telling me that
there is a syntax er
Grant Edwards wrote:
> On 2018-11-07, Peter Otten <__pete...@web.de> wrote:
>> lampahome wrote:
>>
>>> Above is I thought to make code clear, and this pattern is called simple
>>> factory?
>
> [...]
>
>>> *Is there better design pattern for me?*
>
>> Generally speaking you get better solutions
not to tick anybody off, I want to see if this is the correct way to post
to the python list.
Thanks to all who are helping me.
Jack G
--
https://mail.python.org/mailman/listinfo/python-list
On 2018-11-07, Peter Otten <__pete...@web.de> wrote:
> lampahome wrote:
>
>> Above is I thought to make code clear, and this pattern is called simple
>> factory?
[...]
>> *Is there better design pattern for me?*
> Generally speaking you get better solutions when you ask yourself
> "How can
2018-11-08 2:52 GMT+01:00, NoHaxAllSwagg :
> Hello,
> I have been experiencing difficulty while trying to run scripts on my IDLE
> software, considering that when I run my program, I get an error at the top
> of the page in the “Python 3.7.1” area, highlighting the seven telling me
> that there is
NoHaxAllSwagg wrote:
> Hello,
> I have been experiencing difficulty while trying to run scripts on my IDLE
> software, considering that when I run my program, I get an error at the
> top of the page in the “Python 3.7.1” area, highlighting the seven telling
> me that there is a syntax error, in th
On 11/7/18 8:52 PM, NoHaxAllSwagg wrote:
Hello,
I have been experiencing difficulty while trying to run scripts on my IDLE
software, considering that when I run my program, I get an error at the top of
the page in the “Python 3.7.1” area, highlighting the seven telling me that
there is a synta
Also make sure that the Pythonpath contains the folder where the modules
are installed in your machine. - site packages folder.
On Thu 8 Nov, 2018, 16:28 Thomas Jollans On 2018-11-08 06:04, Ian K. wrote:
> > Hello,
> >
> > My name is Ian Kilty and I have been having trouble with pip. I have pip
>
On 2018-11-08 06:04, Ian K. wrote:
> Hello,
>
> My name is Ian Kilty and I have been having trouble with pip. I have pip
> installed, and I have tried to install modules they say they are installed
> in cmd, but when I go into python and import the module, it can't find it.
> I hope there is a sim
Hello,
My name is Ian Kilty and I have been having trouble with pip. I have pip
installed, and I have tried to install modules they say they are installed
in cmd, but when I go into python and import the module, it can't find it.
I hope there is a simple solution to this problem, please let me kno
Hello,
I have been experiencing difficulty while trying to run scripts on my IDLE
software, considering that when I run my program, I get an error at the top of
the page in the “Python 3.7.1” area, highlighting the seven telling me that
there is a syntax error, in this case, I cant remove that a
16 matches
Mail list logo