This file contains 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
<html> | |
<head> | |
<title>This is title</title> | |
<script type="text/javascript" src="jquery.js"></script> | |
<style type="text/css"> | |
body | |
{ | |
font-size: 12pt; | |
font-family: Calibri; | |
padding : 10px; |
This file contains 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
# 方法1 | |
with open('/tmp/track-this') as f: | |
while True: | |
line = f.readline() | |
if line: | |
print line | |
# 方法2 | |
import time | |
def follow(thefile): |
OlderNewer