1. brew install python 2.If you don't have ~/.bash_profile, add ~/.bash_profile by touch ~/.bash_profile 3.Add below text to ~/.bash_profile # Homebrew export PATH=/usr/local/bin:$PATH 4. source ~/.bash_profile 5.test which python /usr/local/bin/pyth
#!/usr/bin/env python """Spare.py is a starting point for simple wxPython programs.""" import wx class Frame(wx.Frame): pass class App(wx.App): def OnInit(self): self.frame = Frame(parent=None, title='Spare') self.frame.Show(
1. Socket介绍 概念 A network socket is an endpoint of a connection across a computer network. Today, most communication between computers is based on the Internet Protocol; therefore most network sockets are Internet sockets. More precisely, a socket is