下载附件拿到源码。 #include <stdio.h> #include <string.h> int main(int argc, char *argv[]) { if (argc != 4) { printf("what?\n"); exit(1); } unsigned int first ...
分类:
其他好文 时间:
2020-06-13 11:15:35
阅读次数:
58
如何做到 ueditor批量上传word图片? 1、前端引用代码 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.d ...
分类:
Web程序 时间:
2020-06-12 13:01:40
阅读次数:
110
package LeetCode_1411 /** * 1411. Number of Ways to Paint N × 3 Grid * https://leetcode.com/problems/number-of-ways-to-paint-n-3-grid/description/ * * ...
分类:
其他好文 时间:
2020-06-12 12:47:40
阅读次数:
58
一、hadoop安装 1. 修改主机名和 IP 地址映射 sudo vi /etc/hostname #修改主机名(如,删掉原有内容,命名为 hadoop) ping hadoop #ping 通证明成功 2. 安装java sudo apt install openjdk-8-jdk-headle ...
分类:
其他好文 时间:
2020-06-11 21:50:24
阅读次数:
78
PHP的curl功能十分强大,简单点说,就是一个PHP实现浏览器的基础。 最常用的可能就是抓取远程数据或者向远程POST数据。但是在这个过程中,调试时,可能会有查看header的必要。 echo get('http://www.baidu.com');exit; function get($url) ...
分类:
Web程序 时间:
2020-06-11 19:50:39
阅读次数:
67
With语句是什么? 有一些任务,可能事先需要设置,事后做清理工作。对于这种场景,Python的with语句提供了一种非常方便的处理方式。一个很好的例子是文件处理,你需要获取一个文件句柄,从文件中读取数据,然后关闭文件句柄。 如果不用with语句,代码如下: file = open("/tmp/fo ...
分类:
编程语言 时间:
2020-06-11 13:41:55
阅读次数:
68
为了提高平时办公效率,今天介绍一款Linux下常用终端连接工具Secure CRT的快捷键,平时常用命令有如下: Tab 命令补全命令,如果按tab出不来,那就是没有这样的路径,或者是权限不对。 Ctrl+c 终止当前任务命令或者程序。 Ctrl+d 退出当前用户环境,相当于exit,logout. ...
分类:
其他好文 时间:
2020-06-11 13:32:59
阅读次数:
56
本文来自:http://blog.itpub.net/22664653/viewspace-1714269/ 一 前言 MySQL 的主从复制作为一项高可用特性,用于将主库的数据同步到从库,在维护主从复制数据库集群的时候,笔者相信大多数人都会遇到“Got fatal error 1236 from ...
分类:
数据库 时间:
2020-06-11 11:56:03
阅读次数:
74
1 #!/usr/bin/env python 2 # encoding: utf-8 3 import ctypes 4 import os 5 class disable_file_system_redirection: 6 """ 7 关闭64位系统的driver目录重定向 8 """ 9 t ...
分类:
编程语言 时间:
2020-06-10 21:30:12
阅读次数:
121
主窗口效果 主窗口代码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; u ...