# 实现用户输入用户名和密码,当用户名为seven且密码为123时,显示登录成功,否则失败,失败时允许重复输入三次。count = 0while count < 3: username = input("Please enter your username: ") password = input( ...
分类:
其他好文 时间:
2018-11-17 22:18:29
阅读次数:
238
前言 转眼间又到了周五,今天暂时想不到什么可以写的,但是又不能浪费了周五这么难得的机会,不写点东西感觉有点罪过啊~~突然想起来以前给某个小公司做了一个留言管理系统,并且部署在阿里云服务器上。所以当时也是倒腾了一下阿里云服务器的搭建,其中也有一些踩坑的经历,想在这里记录一下,顺便也可以温习一下这个过程 ...
分类:
其他好文 时间:
2018-11-17 00:28:14
阅读次数:
256
1、configure: error: xml2-config not found. Please check your libxml2 installation.yum install libxml2-devel -y openssl-devel bzip2-devel curl-devel 2、 ...
分类:
Web程序 时间:
2018-11-16 18:23:45
阅读次数:
381
1.实现一个简单的单词本,功能: ①添加单词,当所添加的单词已存在时,让用户知道 ②查找单词,当查找的单词不存在时,让用户知道 ③删除单词,当删除的单词不存在时,让用户知道 以上功能可以无限次操作,直到用户输入bye退出程序 2.升级版,单词本类型为字典,用封装函数的方法来实现 ...
分类:
编程语言 时间:
2018-11-16 17:26:33
阅读次数:
285
read命令 -p(提示语句) -n(字符个数) -t(等待时间) -s(不回显) 1、基本读取read命令接收标准输入(键盘)的输入,或其他文件描述符的输入(后面在说)。得到输入后,read命令将数据放入一个标准变量中。下面是read命令的最简单形式:: 1 2 3 4 5 #!/bin/bash ...
分类:
系统相关 时间:
2018-11-16 15:15:23
阅读次数:
178
1. please ensure the kernel initial ok. modetest c can find device. for some issue, hdmi need check IO, please remove the IO in dtb and code. 2. if ke ...
分类:
移动开发 时间:
2018-11-15 11:01:01
阅读次数:
199
今天早上上班的时候,突然发现昨天好好的项目,今天报错了,具体错误信息为:SQLSTATE[HY000] [2054] Server sent charset unknown to the client. Please, report to the developers 翻译成中文为服务器向客户端发送 ...
分类:
数据库 时间:
2018-11-15 10:23:56
阅读次数:
484
准备服务器: 主从搭建 安装过程略 主库my.cnf 从库my.cnf 创建复制用户 主库上执行: 复制配置 从库上执行: ERROR 3077 (HY000): To have multiple channels, repository cannot be of type FILE; Please ...
分类:
数据库 时间:
2018-11-14 12:33:54
阅读次数:
207
对于git的提交一直很小心翼翼,感觉一不小心就会踩到莫名的坑。 这不, 某天commit 就遇到了On branch master nothing to commit (working directory clean) 一查意思。你的分支很干净? 干净?excuse me? 然后git push o ...
分类:
数据库 时间:
2018-11-13 22:40:36
阅读次数:
269
configure:error:cURLversion7.10.5orlaterisrequiredtocompilephpwithcURLsupport#wgethttps://curl.haxx.se/download/curl-7.20.0.tar.gz#tar-xzvfcurl-7.20.0.tar.gz#cdcurl-7.20.0#./configure(如果有错,提示没有c相关的编译器
分类:
Web程序 时间:
2018-11-13 20:34:00
阅读次数:
118