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
#!/usr/bin/env python | |
import sys, urllib | |
if __name__ == '__main__': | |
args = sys.argv[1:] | |
for arg in args: | |
print urllib.quote( arg ) |
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
#!/usr/bin/env python | |
import sys, xml.sax.saxutils | |
if __name__ == '__main__': | |
args = sys.argv[1:] | |
for arg in args: | |
print xml.sax.saxutils.unescape( arg ) |
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
#!/usr/bin/env python | |
import sys, xml.sax.saxutils | |
if __name__ == '__main__': | |
args = sys.argv[1:] | |
for arg in args: | |
print xml.sax.saxutils.escape( arg ) |
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定时0.1秒溢出,设置计数值count,每0.1秒加1,再设置变量n,当 | |
* count加到10,即1秒,n加1,也即n便是n秒 | |
* 计时到10000秒归零 | |
*/ | |
#include <TimerOne.h> | |
int a = 2; | |
int b = 3; |
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
/* | |
* Write a program that plays every possible tic-tac-toe game, and then prints the number of valid, completed games | |
*/ | |
var gameCount = 0; | |
var board = [null, null, null, null, null, null, null, null, null]; | |
var player0Pointer = 0; |
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
#!/usr/bin/env python | |
import sys, time | |
if __name__ == '__main__': | |
args = sys.argv[1:] | |
for arg in args: | |
print(time.ctime( int(arg) )) |
OlderNewer