X-Received: by 10.50.23.110 with SMTP id l14mr2802769igf.12.1447553585784; Sat, 14 Nov 2015 18:13:05 -0800 (PST) X-Received: by 10.50.142.66 with SMTP id ru2mr197993igb.3.1447553585770; Sat, 14 Nov 2015 18:13:05 -0800 (PST) Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!i2no2634205igv.0!news-out.google.com!f6ni2807igq.0!nntp.google.com!i2no2634198igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Sat, 14 Nov 2015 18:13:04 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=50.100.117.144; posting-account=SZ_svQkAAACWRFG2bDA-zgq8ILyl4-vo NNTP-Posting-Host: 50.100.117.144 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3aa2f352-ea19-4252-9a09-c884887cf810@googlegroups.com> Subject: Re: What meaning is of '#!python'? From: fl Injection-Date: Sun, 15 Nov 2015 02:13:05 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.lang.python:98841 On Saturday, November 14, 2015 at 8:58:57 PM UTC-5, Chris Angelico wrote: > On Sun, Nov 15, 2015 at 12:54 PM, fl wrote: > > I see an example Python code has such a line at the file beginning: > > > > #!python > > > > > > Is there some meaning about it? > > It probably didn't look exactly like that. Please, when you're asking > questions, COPY AND PASTE rather than retyping some approximation of > what you saw. > > As it happens, I can tell what you're asking about - it's called a > shebang - but I very much doubt that it was exactly what you wrote. > > ChrisA Excuse me. Below is copied from the .py file: #!python from numpy import * from numpy.random import * def resample(weights): n = len(weights) indices = [] Thanks,