JOIN DEVPPL

It looks like you are new here. If you want to get involved, click on Join below!



what is python


B

keyboard_arrow_up
0
keyboard_arrow_down


First Post Mark as Spam bishi
Posts: 2 - Registered: 2005-01-31 00:51:05

hi!i want to know what is python..
and i work in PHP HOW I LEARNS THAT PYTHON




L

keyboard_arrow_up
0
keyboard_arrow_down


Reply #2 Mark as Spam lily
Posts: 0 - Registered: 2004-08-22 18:03:39

A question while im moving my data to my new hdd. What is an object oriented lang?




R

keyboard_arrow_up
0
keyboard_arrow_down


Reply #3 Mark as Spam rk
Posts: 8 - Registered: 2004-08-29 09:27:34

He's a page that explains it better then I eve could:
http://java.sun.com/docs/books/tutorial/java/concepts/




D

keyboard_arrow_up
0
keyboard_arrow_down


Reply #4 Mark as Spam davidbeckam
Posts: 1 - Registered: 2009-08-26 01:21:10

I'm mainly a PHP programmer however I've been dabbling in Python and absolutely love how simple everything is. I wrote a email filter to catch certain mail in about 30 minutes and now I have this new script which logs me into my campus' BlueSocket WIFI automatically.... Basically I was just wondering are there any ways I could have cut this down a bit more (maybe how I dealt with the gateway handling?)

Code:

#!/usr/bin/python
import urllib2, urllib, socket
username = 'USERNAME'
password = 'PASWORD'
ip = socket.gethostbyname(socket.gethostname())
gateway = ip.split('.')
gateway='1'
gatewayip = gateway
gate_ip = ".".join(gatewayip)
gatesip = "http://",gate_ip,"/login.pl"
g = "".join(gatesip)
login = urllib.urlencode({'customlogin': 1, '_FORM_SUBMIT': 1, 'which_form': 'reg', 'destination': '', 'error': '', 'source': '128.186.232.83','SUBMIT': 'Log In', 'bs_name': username, 'bs_password': password});
e = urllib2.urlopen(g, login)
print "Tried...",g
print "Logged in!"

Thanks in advance.






JOIN DEVPPL

It looks like you are new here. If you want to get involved, click on Join below!




MENU
Advertising