对excel表的操作主要通过xlwt,xlrd模块。 创建excel表 import xlwtworkbook = xlwt.Workbook(encoding='utf-8') worksheet = workbook.add_sheet('worksheet') worksheet.write( ...
分类:
其他好文 时间:
2021-05-24 13:58:32
阅读次数:
0
安装pymysql报错: TypeError: 'encoding' is an invalid keyword argument for this function Command "python setup.py egg_info" failed with error code 1 in c:\ ...
分类:
数据库 时间:
2021-05-24 13:57:46
阅读次数:
0
JSP表达式 <%--JSP表达式 作用:用来将程序的输出,输出到客户端 <%= 变量或者表达式%> --%> <%= new java.util.Date()%> jsp脚本片段 1 <%--jsp脚本片段--%> 2 <% 3 int sum = 0; 4 for (int i = 1; i < ...
分类:
Web程序 时间:
2021-05-24 13:47:30
阅读次数:
0
// // 函数代码分隔符 // function * gen(){ // // console.log('hello generator'); // } // let iterator = gen(); // // console.log(iterator); // // iterator.nex ...
分类:
其他好文 时间:
2021-05-24 13:47:04
阅读次数:
0
如果数组里的第一个字符串包含了第二个字符串中的所有字母,则返回 true。例如,["hello", "Hello"] 应该返回 true。因为在忽略大小写的情况下,第一个字符串包含了第二个字符串里出现的所有字母。["hello", "hey"] 应该返回 false。因为 hello 并不包含字符 ...
分类:
其他好文 时间:
2021-05-24 13:43:43
阅读次数:
0
promise.then 如果不加第二个参数则会执行catch方法, 加第二个参数则不会执行catch方法。 var pro=new Promise((resolve,reject)=>{ // resolve(); reject(); }) pro.then(()=>{ console.log(' ...
分类:
其他好文 时间:
2021-05-24 13:41:41
阅读次数:
0
<?php class One{ private static $_one; private function __construct(){} private function __clone(){} public static function getOne(){ if(!self::$_one ...
分类:
Web程序 时间:
2021-05-24 13:36:59
阅读次数:
0
countDownLatch这个类使一个线程等待其他线程各自执行完毕后再执行。 public class CountDownLatchDemo { public static void main(String[] args) throws InterruptedException{ /** * * ...
分类:
其他好文 时间:
2021-05-24 13:31:31
阅读次数:
0
检查字符串(第一个参数 str)是否以给定的目标字符串(第二个参数 target)结束。这个挑战 可以 用 ES2015 引入的 .endsWith() 方法来解决。但在这个挑战中,请使用 JavaScript 的字符串子串方法。 1 function confirmEnding(str, targ ...
分类:
其他好文 时间:
2021-05-24 13:09:02
阅读次数:
0
public class Test { public static void main(String[] args) throws InterruptedException { TwoPhaseTermination tpt = new TwoPhaseTermination(); tpt.star ...
分类:
其他好文 时间:
2021-05-24 13:06:08
阅读次数:
0