Skip to content

Instantly share code, notes, and snippets.

@is
Created July 27, 2016 02:24
Show Gist options
  • Select an option

  • Save is/2d19146cf76dd13ac36448e3ab075889 to your computer and use it in GitHub Desktop.

Select an option

Save is/2d19146cf76dd13ac36448e3ab075889 to your computer and use it in GitHub Desktop.
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtWebKit import *
app = QApplication(sys.argv)
web = QWebView()
web.load(QUrl("http://map.baidu.com"))
web.show()
sys.exit(app.exec_())
#!/usr/bin/python
import time
fn = "a.log"
fout = open(fn, "a+")
msg = "now is %s" % time.time()
print >>fout, msg
fout.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment