摘要:
服务器接收文件时,有时会使用表单接收的方式,这意味着我们需要使用Python的requests上传表单数据和文件。 常用的方式一般如下: files是封装好的参数,直接包括了文件内容,文件名,格式等,data则是表单内容,但这样做有一个问题,文件是中文名时,requests就会报错,哪怕encode
阅读全文
posted @ 2019-01-08 11:28
slqt
阅读(18062)
推荐(0)
摘要:
hashlib.md5('test').hexdigest()
阅读全文
posted @ 2019-01-06 12:55
slqt
阅读(159)
推荐(0)
摘要:
一 变量 1. 变量的形式是:{{ variable }},当模板引擎碰到变量时,引擎使用变量的值替代变量; 2. 使用“.”能够访问变量的属性; 3. 当模板引擎碰到“.”的时候,查找顺序是: a) 字典查找,foo['var']; b) 属性查找,foo.bar; c) 方法产找,foo.fun
阅读全文
posted @ 2019-01-03 17:49
slqt
阅读(2286)
推荐(0)
posted @ 2018-12-26 11:19
slqt
阅读(724)
推荐(0)
摘要:
# coding: UTF-8 import platform from _utils.patrol2 import run_cmd, data_format, report_format import os, sys, re, json, copy import stat import socket import stat import sqlite3 # # conn=sqlite3.co...
阅读全文
posted @ 2018-12-25 14:42
slqt
阅读(248)
推荐(0)
摘要:
配置coding的git git init git remote add origin <git项目地址>git pull <git项目地址>git add . git commit git push origin master 老是报hint: See the 'Note about fast-f
阅读全文
posted @ 2018-12-24 17:23
slqt
阅读(265)
推荐(0)
摘要:
using UnityEngine; using System.Collections; using UnityEngine.EventSystems; //using UnityEngine.SceneManagement; using System; using UnityEngine.UI; using System.Runtime.InteropServices; public cl...
阅读全文
posted @ 2018-12-06 17:27
slqt
阅读(3559)
推荐(0)
摘要:
https://blog.csdn.net/qinyuanpei/article/details/48435063 一点思考http://www.ceeger.com/forum/read.php?tid=18229 工具介绍 https://blog.csdn.net/swordfishx82/a
阅读全文
posted @ 2018-12-06 16:51
slqt
阅读(1848)
推荐(0)
posted @ 2018-12-06 16:38
slqt
阅读(468)
推荐(0)
摘要:
教程参见 http://webpy.org/install.zh-cn pip install web.py 或easyinstall web.py
阅读全文
posted @ 2018-12-06 10:17
slqt
阅读(377)
推荐(0)