#include #include #include #include #include #include #include char path[100]={0}; typedef struct{ long mtype; char buff[1024]; }MSG; key_t getKey(){ ... ...
分类:
系统相关 时间:
2019-02-26 17:41:19
阅读次数:
242
1 import smtplib 2 from email.mime.text import MIMEText 3 msg_from='1@qq.com' #发送方邮箱 4 passwd='bd' #填入发送方邮箱的授权码 5 msg_to='1@qq.c... ...
分类:
编程语言 时间:
2019-02-25 13:15:09
阅读次数:
194
1. icon参数为0,如下代码: layer.msg('请选择要编辑的机构', {icon: 0});运行结果如图: icon参数为0,如下图 icon参数为1,如下图: icon参数为2,如下图: icon参数为3,如下图: icon参数为4,如下图: icon参数为5,如下图: icon参数为 ...
分类:
其他好文 时间:
2019-02-19 13:19:01
阅读次数:
143
c# jobject 数据结构的解析:首先下载Newtonsoft.Json,增加引用using Newtonsoft.Json.Linq;把jobject的内容提取出来,Jobject的内容格式如下: { "code": 200, "msg": "SUCCESS", "data": { "id": ...
1.父组件传递数据给子组件 父组件数据如何传递给子组件呢?可以通过props属性来实现 父组件: //这里必须要用 - 代替驼峰 data(){ return { msg: [1,2,3] }; } 子组件通过props来接收数据: 方式1: props: ['childMsg'] 方式2 : pr... ...
分类:
其他好文 时间:
2019-02-15 18:04:18
阅读次数:
182
在Vue项目中dom渲染过程中,类似{{msg}}的render页面会闪一下,是因为浏览器解析html文档是自上而下的解析,出现了{{msg}}转换为对应数据的过程而闪。 我们可以采用 v-text指令来取代{{msg}},从而解决这个问题 ...
分类:
其他好文 时间:
2019-02-14 22:23:59
阅读次数:
277
print("i am %s" %'admin') # i am admin msg = "i am %s" %'Alex' print(msg) # i am Alex print("i am %s, i am %d" %('admin', 18)) # i am admin, i am 18 t... ...
分类:
其他好文 时间:
2019-02-14 00:25:14
阅读次数:
152
class MyExcept(Exception): def __init__(self, msg): self.message = msg def __str__(self): return self.message try: raise MyExcept("我的异常") except MyExc... ...
分类:
其他好文 时间:
2019-02-14 00:20:55
阅读次数:
178
#构建对象时,第一个是邮件正文,第二个发送类型,plain表示纯文本,最后使用utf-8保证多语言兼容#如果需要发送html的话,就把plain改为html#然后通过SMTP发出去:from email.header import Header;msg=MIMEText('<a href=''>哈哈 ...
分类:
编程语言 时间:
2019-02-13 14:25:31
阅读次数:
163
$ajax的post请求提交方式: Controller: @RequestMapping("/emps") @ResponseBody public Msg getEmps(@RequestParam(value = "pn", defaultValue = "1") Integer pn, Mo ...
分类:
Web程序 时间:
2019-02-12 21:23:50
阅读次数:
130