Re: acircle.getCenter() to (x,y) coordinates in Python

2017-12-25 Thread MRAB
On 2017-12-25 02:42, G Yu wrote: Ah, I get it now. I have to store the acircle.getCenter() in a point Point, and then access Point.getX() and Point.getY() separately. It was just that middle step that I was missing. Thanks so much! It's not strictly true that you _have to_ store the result

Re: user input string to function

2017-12-25 Thread Nico Vogeli
Am Montag, 25. Dezember 2017 16:56:19 UTC+1 schrieb Chris Angelico: > On Tue, Dec 26, 2017 at 2:04 AM, Nico Vogeli wrote: > > Am Montag, 25. Dezember 2017 15:58:26 UTC+1 schrieb Chris Angelico: > >> On Tue, Dec 26, 2017 at 1:48 AM, Nico Vogeli wrote: > >> > Am Montag, 25. Dezember 2017 14:51:21 U

Re: user input string to function

2017-12-25 Thread Chris Angelico
On Tue, Dec 26, 2017 at 2:04 AM, Nico Vogeli wrote: > Am Montag, 25. Dezember 2017 15:58:26 UTC+1 schrieb Chris Angelico: >> On Tue, Dec 26, 2017 at 1:48 AM, Nico Vogeli wrote: >> > Am Montag, 25. Dezember 2017 14:51:21 UTC+1 schrieb Chris Angelico: >> >> On Tue, Dec 26, 2017 at 12:36 AM, Nico Vo

Re: user input string to function

2017-12-25 Thread Nico Vogeli
Am Montag, 25. Dezember 2017 15:58:26 UTC+1 schrieb Chris Angelico: > On Tue, Dec 26, 2017 at 1:48 AM, Nico Vogeli wrote: > > Am Montag, 25. Dezember 2017 14:51:21 UTC+1 schrieb Chris Angelico: > >> On Tue, Dec 26, 2017 at 12:36 AM, Nico Vogeli wrote: > >> > Hi everybody. First ad foremost, happy

Re: user input string to function

2017-12-25 Thread Chris Angelico
On Tue, Dec 26, 2017 at 1:48 AM, Nico Vogeli wrote: > Am Montag, 25. Dezember 2017 14:51:21 UTC+1 schrieb Chris Angelico: >> On Tue, Dec 26, 2017 at 12:36 AM, Nico Vogeli wrote: >> > Hi everybody. First ad foremost, happy Christmas! >> >> Same to you! >> >> > I want to let the use input a functio

Re: user input string to function

2017-12-25 Thread Nico Vogeli
Am Montag, 25. Dezember 2017 14:51:21 UTC+1 schrieb Chris Angelico: > On Tue, Dec 26, 2017 at 12:36 AM, Nico Vogeli wrote: > > Hi everybody. First ad foremost, happy Christmas! > > Same to you! > > > I want to let the use input a function (like x**2) and parse it after that > > through code (fo

Re: unabe to import /pyd file.

2017-12-25 Thread Matt Wheeler
On Fri, Dec 15, 2017, 09:58 wrote: > Hi, > > I have created one library file > "modified_python_automation_tcl.py"..Inside my library file I have set of > codes as follows. > > import sys > import time > from datetime import datetime > import re,sys,os,itertools,datetime,commands,logging,math,tim

Re: user input string to function

2017-12-25 Thread Chris Angelico
On Tue, Dec 26, 2017 at 12:36 AM, Nico Vogeli wrote: > Hi everybody. First ad foremost, happy Christmas! Same to you! > I want to let the use input a function (like x**2) and parse it after that > through code (for my numeric class) > > def newton(x0, s, s2, tol, n = 2): > ''' > Näh

user input string to function

2017-12-25 Thread Nico Vogeli
Hi everybody. First ad foremost, happy Christmas! I want to let the use input a function (like x**2) and parse it after that through code (for my numeric class) import numpy as np import matplotlib.pyplot as plt import scipy.linalg from sympy.abc import o, h import sympy from sympy import symbol

Re: Writing a chess-playing AI like Alphago in Python

2017-12-25 Thread caigy84
On Sunday, December 24, 2017 at 1:26:22 PM UTC+8, Steve D'Aprano wrote: > On Sun, 24 Dec 2017 12:20 pm, Cai Gengyang wrote: > > > How many lines of code in Python would it take to create a Go-playing AI > > like AlphaGo ? Estimates ? > > Somewhere between 1 and 1 billion. > > How about you start