i would like to use python to write a web page like writing an html file that
is displayed in a browser without having to run a server.
found a few options, but need to have server running.
https://skulpt.googlecode.com/hg/skulpt
gives 404 error
___
sday, June 7, 2011, 1:16 AM
>
> "Michael bridges"
> wrote
>
> > i want to 10 / 1000 and get 0.01 not 0
> > if 1000 is made 1000.00 then 0.01 is printed
> > but that gives 500 / 1000.00 is 0.5 not 0.50
> >
> > can someone till me how to get
i saw it somewhere, but where?
i want to 10 / 1000 and get 0.01 not 0
if 1000 is made 1000.00 then 0.01 is printed
but that gives 500 / 1000.00 is 0.5 not 0.50
i might be thinking C# not python.
can someone till me how to get a two decimal precision every time?
_
simple
file was named __ init __.py not __init__.py
restored from recycle bin showed the error
thanks for your help
--- On Sun, 6/5/11, Alexandre Conrad wrote:
> From: Alexandre Conrad
> Subject: Re: [Tutor] No module named player_data
> To: "Michael bridges"
> Cc: T
om: Alexandre Conrad
> Subject: Re: [Tutor] No module named player_data
> To: "Michael bridges"
> Cc: Tutor@python.org
> Date: Sunday, June 5, 2011, 7:58 PM
> 2011/6/5 Michael bridges :
> > one of the things i deleted was __init__.py &
> __init__.pyc [thought i
ables]
[no classes, no functions, just variables]
--- On Sun, 6/5/11, Alexandre Conrad wrote:
> From: Alexandre Conrad
> Subject: Re: [Tutor] No module named player_data
> To: "Michael bridges"
> Cc: Tutor@python.org
> Date: Sunday, June 5, 2011, 7:11 PM
> 2011/6/5 Mich
> Subject: Re: [Tutor] No module named player_data
> To: "Michael bridges"
> Cc: Tutor@python.org
> Date: Sunday, June 5, 2011, 7:11 PM
> 2011/6/5 Michael bridges :
> > why does this happen?
> >
> > server [folder]
> > player_data [folder]
why does this happen?
server [folder]
player_data [folder]
server.py
Traceback (most recent call last):
File
"C:\Users\MySelf\Program\game_stuff\Game_28_02_11\Servers\server_client_begining\server.py",
line 3, in
from player_data import PlayerArmy
ImportError: No module nam
when running code from http://fragments.turtlemeat.com/pythonwebserver.php:
[putting http://localhost:81/index.html in broswer]
this error happens:
>>>
Traceback (most recent call last):
File
"C:\Users\MySelf\Program\game_stuff\Python_Server_code_and_test\pythonweb\webserver.py",
line 65, in