#_*_ encoding: utf-8 _*_ @author: ty hery 2019/12/20 from flask import Flask, render_template, request, url_for, redirect from flask_sqlalchemy import ...
分类:
其他好文 时间:
2021-04-13 12:32:12
阅读次数:
0
# 通用内置函数 ## pow() ### 求次幂 a1 = pow(2,3) #等同与2**3 print(a1) 结果:8 ## ord() ### 字符转换位数字 print(ord("a")) #对照ascll码 结果:97 ## chr() ### 将数字转换成unicode格式的字符,可 ...
分类:
其他好文 时间:
2021-04-13 12:31:01
阅读次数:
0
from flask import Flask from flask_restful import Api,Resource app = Flask(__name__) api = Api(app) class HelloWorld(Resource): def get(self): return ...
分类:
其他好文 时间:
2021-04-13 12:26:40
阅读次数:
0
package stream import ( "log" "reflect" "sort" ) type ( // a Stream is where one can drain data from Stream chan interface{} // buffer stream BufferSt ...
vi string_array.sh #!/bin/bash city=(Nanjing Atlanta Massachusetts Marseilles) #建立一个简单的数组echo "Extracting Substring" #演示抽取子串功能echo ${city[*]:0} #抽取整个数 ...
分类:
编程语言 时间:
2021-04-13 12:08:59
阅读次数:
0
from aliyunsdkcore.client import AcsClient from aliyunsdkcore.acs_exception.exceptions import ClientException from aliyunsdkcore.acs_exception.excepti ...
分类:
其他好文 时间:
2021-04-13 11:55:43
阅读次数:
0
from fractions import Fraction def newint(): opr = ['+', '-', '×', '÷'] fh = random.randint(0, 3) n1 = random.randint(1, 20) n2 = random.randint(1, 20 ...
分类:
其他好文 时间:
2021-04-12 12:52:59
阅读次数:
0
1 def find_worldByName(c_name,continent): 2 print(c_name) 3 print(continent) 4 sql = " SELECT * FROM world WHERE 1=1 " 5 if(c_name!=None): 6 sql=sql+" ...
分类:
数据库 时间:
2021-04-12 12:45:06
阅读次数:
0
import requests from lxml import etree import csv headers={ 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) ...
分类:
其他好文 时间:
2021-04-12 12:41:35
阅读次数:
0
-- DENSE_RANK:并列连续排序,并列即相同的值,相同的值保留重复名次,遇到下一个不同值时,依然按照连续数字排名 SELECT emp_no, salary, DENSE_RANK() OVER(ORDER BY salary DESC) as t_rank from salaries; - ...
分类:
数据库 时间:
2021-04-12 12:32:54
阅读次数:
0