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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.40784314274787903</real> |
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
#coding=utf-8 | |
from wxpy import * | |
bot = Bot(console_qr=False,cache_path=True) | |
myfriend2 = bot.mps().search("小冰")[0] | |
mygroup = bot.groups().search("某个组名")[0] | |
@bot.register([mygroup], TEXT) | |
def reply_my_friend(msg): | |
myfriend2.send(msg.text) | |
@bot.register([myfriend2], TEXT) |
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
function addZero(str,length){ | |
return new Array(length - str.length + 1).join("0") + str; | |
} |
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
{this.props.section.text.split(“\n”).map(function(item) { | |
return ( | |
<span> | |
{item} | |
<br/> | |
</span> | |
) | |
}) |
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
class CompanyManager extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
} | |
} | |
render () { |
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
[ | |
{"keys":["f5"], | |
"caption": "SublimeREPL: Python - RUN current file", | |
"command": "run_existing_window_command", | |
"args": | |
{ | |
"id": "repl_python_run", | |
"file": "config/Python/Main.sublime-menu" | |
}}, | |
{"keys":["f4"], |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>浏览器对象</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=gkb"/> | |
</head> | |
<body> | |
<!--先编写好网页布局--> | |
<h3>操作成功</h3> | |
<span id="sec">5</span>秒后回到主页 |
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
import os | |
import re | |
com = "5037" | |
adblist=list() | |
info = os.popen("netstat -ano|findstr " + com).readlines() | |
for i in info: | |
m = re.match(r"\s+(.*)\s+(.*)\s+(.*)\s+(.*)\s+(.*)", i) | |
adblist.append(m.group(4)) | |
print adblist | |
for j in adblist: |
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
import os | |
import os.path | |
rootdir = "d:\data" # 指明被遍历的文件夹 | |
for parent,dirnames,filenames in os.walk(rootdir): #三个参数:分别返回1.父目录 2.所有文件夹名字(不含路径) 3.所有文件名字 | |
for dirname in dirnames: #输出文件夹信息 | |
print "parent is:" + parent | |
print "dirname is" + dirname | |
for filename in filenames: #输出文件信息 |
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
import random | |
def randomssid(self, length=255): | |
randomvalue = list() | |
for i in range(length): | |
val_cjk = random.randint(0x4E00, 0x9FBF) # CJK | |
val_ascii = random.randint(0x0020, 0x007e) # ascii | |
val_fascii = random.randint(0xff01, 0xff64) # fullwidth ascii | |
randomvalue.append( | |
unichr(random.choice([val_cjk, val_ascii, val_fascii]))) | |
return randomvalue |
NewerOlder