Python2.6 开始,新增了一种格式化字符串的函数 str.format(),它增强了字符串格式化的功能。 基本语法是通过 {} 和 : 来代替以前的 % 。 format 函数可以接受不限个参数,位置可以不按顺序。 代码如下图: F:\dev\python\python.exe F:/pyCh ...
分类:
编程语言 时间:
2019-02-15 17:50:21
阅读次数:
171
It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that c ...
分类:
其他好文 时间:
2019-02-15 14:02:17
阅读次数:
143
1、字符串数组越界 java.lang.String IndexOutOfBounds Exception:String index out of range:-1 导致: Transaction rolled back because it has been marked as rollback- ...
分类:
其他好文 时间:
2019-02-15 13:30:54
阅读次数:
301
Markdown几个简单的标记可以实现轻量级的代替Word方案 不多说,引入开源库js https://github.com/chjj/marked使用方式相对简单一些,参照上面的实例,完成相同的功能,如下:实例代码: ...
分类:
Web程序 时间:
2019-02-15 11:52:48
阅读次数:
205
SE2205: Algorithms and Data Structures for Object-Oriented DesignLab Assignment 1Assigned: Jan 16, 2019; Due: Feb 13, 2019 @ 10:00 a.m.If you are work ...
分类:
其他好文 时间:
2019-02-09 21:05:12
阅读次数:
124
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p ...
分类:
其他好文 时间:
2019-02-09 17:52:59
阅读次数:
143
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p ...
分类:
其他好文 时间:
2019-02-03 19:48:35
阅读次数:
208
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p ...
分类:
其他好文 时间:
2019-02-03 18:05:27
阅读次数:
184
https://pintia.cn/problem-sets/994805342720868352/problems/994805343727501312 The lowest common ancestor (LCA) of two nodes U and V in a tree is the d ...
分类:
其他好文 时间:
2019-01-30 11:04:48
阅读次数:
109