On 15.08.2014 11:18, ngangsia akumbo wrote:
> i have this piece of code 
> 
> file1 = open('text.txt, w)
> try:
>     text = file1.read()
> finally:
>     file1.close()
> 
> i wish to manage an office task using this small code , how can i implemetn 
> it to function. 

import random
import troll
import socket

t = troll.GenericTroll(maxiq = 75)
try:
        t.connect("comp.lang.python")
        t.spout(random.randdrivel())
except socket.error:
        print("so good try. many wow. fail sad")
finally:
        t.close()

> how can i pars it in a webpage ?

t.pars_in_a_webpage()

Cheers,
Johannes

-- 
>> Wo hattest Du das Beben nochmal GENAU vorhergesagt?
> Zumindest nicht öffentlich!
Ah, der neueste und bis heute genialste Streich unsere großen
Kosmologen: Die Geheim-Vorhersage.
 - Karl Kaos über Rüdiger Thomas in dsa <hidbv3$om2$1...@speranza.aioe.org>
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to