查看 提交 统计 提示 提问 总时间限制: 1000ms 内存限制: 65536kB描述 73 88 1 02 7 4 44 5 2 6 5(Figure 1) Figure 1 shows a number triangle. Write a program that calculates the ...
分类:
其他好文 时间:
2020-03-29 12:35:36
阅读次数:
63
第一件事当然是生成学生的分数,这里我是自己随机生成的,直接看代码,注释都写得很详细了 1 import random 2 import json 3 4 5 def random_score(sum, bottom, top): 6 ''' 7 :param sum: 生成随机数总数 8 :para ...
分类:
编程语言 时间:
2020-03-29 01:15:04
阅读次数:
130
Install Dependency $ npm init $ npm install @openzeppelin/cli Setup project $ npx openzeppelin init Write first contract in contracts/, then compile p ...
分类:
其他好文 时间:
2020-03-28 17:47:01
阅读次数:
113
测试数据:Northwind 链接地址: https://files.cnblogs.com/files/louiszh/NorthWind.zip 首先创建一个测试存储过程: IF EXISTS (SELECT 1 FROM SYSOBJECTS WHERE id = object_id ('pr ...
分类:
数据库 时间:
2020-03-28 16:09:14
阅读次数:
97
$(document).ready(function() { "use strict"; var mo = { init: function() { $('.download').click(function() { var data = $('#txt').val(); if (data '') ...
分类:
Web程序 时间:
2020-03-28 10:43:58
阅读次数:
85
stop-writes-on-bgsave-error:https://blog.csdn.net/weixin_39472415/article/details/99703185,运行config set stop-writes-on-bgsave-error no 命令后,关闭配置项stop-w ...
分类:
其他好文 时间:
2020-03-27 20:01:36
阅读次数:
108
601. 体育馆的人流量 暴力搜索条件 一开始不知道怎么去重,然后看了一眼评论区就行白了,直接 select s1.* 就可以对全表的数据进行去重 # Write your MySQL query statement below select distinct s1.* from stadium s ...
分类:
其他好文 时间:
2020-03-27 12:50:10
阅读次数:
71
1、检查监控服务是否正常提供; 命令: mysqladmin -uroot -p密码 -h服务器主机地址 ping 正常应该显示:mysqld is alive 2、获取mysql当前的状态值 mysqladmin -uroot -p密码 -h服务器主机地址 status uptime:服务器启动后 ...
分类:
数据库 时间:
2020-03-27 11:12:14
阅读次数:
121
1. 缓存的读写模式和分类 1)缓存的读写模式 (1) 缓存有3种读写模式 Cache Aside(旁路缓存) Read/Write(读写穿透) Write Behind Caching(异步缓存写入) (2) Cache Aside 写过程:更新DB => 删除cache => DB驱动缓存数据更 ...
分类:
其他好文 时间:
2020-03-26 23:18:53
阅读次数:
114
Linux驱动中的异步函数(aio_read和aio_write) 我们可以在signal_handler使用了read和write函数处理设备文件的读写操作。然而这两个函数可以分别用aio_read和aio_write代替。在本节将重新改造signal驱动,使用aio_read和aio_write ...
分类:
系统相关 时间:
2020-03-26 21:38:58
阅读次数:
193