题目链接:http://poj.org/problem?id=2378 题目: Description After Farmer John realized that Bessie had installed a "tree-shaped" network among his N (1 <= N < ...
分类:
其他好文 时间:
2018-04-22 21:40:00
阅读次数:
194
1,求三个值中的最大值:n1,n2,n3 1,1 max=max(max(n1,n2),n3) 1,2 if n1>=n2: #取最大值 max=n1 else max=n2 if n3>=max: #取最大值 max=n3 else pass print("max:",max) 2,交互模式下: ...
分类:
其他好文 时间:
2018-04-22 20:10:38
阅读次数:
125
# -*- coding: utf-8 -*- """ Created on Sun Apr 22 15:55:56 2018 @author: MyPC """ def main(): ''' 计算圆柱体的体积. 公式: area = radius * radius * π volume = ar... ...
分类:
其他好文 时间:
2018-04-22 18:07:56
阅读次数:
174
一,运算符 1.计算运算符:% 取模-返回余数; ** 幂-返回x的y次幂; // 取整数-返回商的整数部分; py2.x 9/2=4(需要导入模块) py3.x=4.5 pycharm 编辑器 IDE 编写代码工具:1.配置模板。 2.设置文字大小。 3.点击运行。 4.切换python版本:fi ...
分类:
编程语言 时间:
2018-04-22 15:10:52
阅读次数:
198
Problem A: 文件操作--二进制文件读入 Description 现有100名学生的姓名(name)、学号(num)、英语(English)、数学(Math)、语文(Chinese)成绩存储在一个二进制文件student.dic中(姓名用char[20],学号和各科成绩用int存储),现要求 ...
分类:
其他好文 时间:
2018-04-21 23:34:50
阅读次数:
177
smarty简单配置 smarty_inc.php <?phpinclude_once("./smarty/Smarty.class.php");$smarty=new Smarty();$smarty->config_dir="smarty/Config_File.class.php";//目录变 ...
分类:
数据库 时间:
2018-04-21 21:21:26
阅读次数:
292
One day Dima and Alex had an argument about the price and quality of laptops. Dima thinks that the more expensive a laptop is, the better it is. Alex ...
分类:
其他好文 时间:
2018-04-21 19:28:07
阅读次数:
164
【BZOJ5299】【CQOI2018】解锁屏幕(动态规划,状态压缩) 题面 "BZOJ" "洛谷" Description 使用过Android手机的同学一定对手势解锁屏幕不陌生。Android的解锁屏幕由3x3个点组成,手指在屏幕上画一条 线将其中一些点连接起来,即可构成一个解锁图案。如下面三个 ...
分类:
其他好文 时间:
2018-04-21 16:17:28
阅读次数:
206
问题:在页面中引入mui地址选择时,点击页面中的input页面会滚到顶部(谷歌浏览器中出现的bug),在手机上点击input会出现跳动。开始的时候是想修改mui.min.js里的滚动事件,但是后来找到一个方法,只需要加一个css 属性就ok。 解决办法:在body中添加 overflow: scro ...
分类:
其他好文 时间:
2018-04-21 16:14:02
阅读次数:
1541