前言 面 tx 被问到 python 的高级特性相关,这里做个补充学习吧 正向范围取值 关键点 首位下标是 0 第一个数字是起始下标,第二个数字是结束下标(但最终结果不包含它) 代码块一 # 正向范围取值 - 字符串 strs ="https://www.cnblogs.com/poloyy" # ...
分类:
编程语言 时间:
2021-04-09 13:37:37
阅读次数:
0
以下是针对移动端所设计的样式,如需pc端的请自行更改 window.onload = function(){ window.alert = function(msg, callback) { var div = document.createElement("div"); div.innerHTML ...
分类:
其他好文 时间:
2021-04-09 13:35:30
阅读次数:
0
JavaScript语言中,生成实例对象的传统方法是通过构造函数 function Point(x,y){ this.x = x; this.y = y; } Point.prototype.toString = function (){ return '('+this.x + ',' + this ...
分类:
其他好文 时间:
2021-04-09 13:35:12
阅读次数:
0
【python】Leetcode每日一题-寻找旋转排序数组中的最小元素2 ...
分类:
编程语言 时间:
2021-04-09 13:27:35
阅读次数:
0
变量 什么是变量 变量就是可以改变的量,实际上是数据在内存中存储一块空间。在python中,变量在使用前必须赋值。 变量的定义 变量名 = 值 = 用来给变量赋值,= 左边是一个变量名,= 右边是存储在变量中的值。 一行为一个变量赋值: a = 1 b = 1.2 c = True 一行中为多个变量 ...
分类:
编程语言 时间:
2021-04-09 13:20:29
阅读次数:
0
描述 给出一个字符c,你需要判断它是不是一个数字字符或者字母字符。 如果是,返回true,如果不是返回false。 如果您使用的是Python语言,那么输入将是一个长度为1的字符串。 样例 样例 1: 输入:'1' 输出:true class Solution: """ @param c: A ch ...
分类:
其他好文 时间:
2021-04-09 13:14:43
阅读次数:
0
思路:从s1的第0位开始切片len(s2)个字符串进行比较,相同则计数加1,依次后移,直到最后. def search_substr(s1, s2): if len(s2) > len(s1): return 0 cnt = 0 for i in range(len(s1)): print(i) t ...
分类:
编程语言 时间:
2021-04-09 13:07:30
阅读次数:
0
function getDuration(value,dateFormat){ let hour = parseInt((value) / 3600); if (hour<10) {//时 hour = "0" + hour; } var minute = parseInt((value % 360 ...
分类:
编程语言 时间:
2021-04-09 13:03:38
阅读次数:
0
1.以dba管理员登录 sqlplus / as sysdba 2.查看密码策略 SQL> select * from dba_profiles where resource_NAME='PASSWORD_VERIFY_FUNCTION'; 3.登录PL/SQL,以sysdba方式登录,密码输入默认 ...
分类:
数据库 时间:
2021-04-09 12:59:55
阅读次数:
0
test_or.py from sqlalchemy import Table, Column, Integer,String,DATE, ForeignKey from sqlalchemy.orm import relationship from sqlalchemy.ext.declarati ...
分类:
编程语言 时间:
2021-04-09 12:56:13
阅读次数:
0