Created
July 27, 2016 02:24
-
-
Save is/2d19146cf76dd13ac36448e3ab075889 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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_()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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