码迷,mamicode.com
首页 >  
搜索关键字:price    ( 2479个结果
JAVA解析XML文件
.xml文件,树形结构 标准XML文档示例: bookStore> book id="1"> name>冰与火之歌name> author>乔治马丁author> year>2014year> price>99price> book> book id="2">...
分类:编程语言   时间:2016-06-02 13:45:01    阅读次数:253
买书本
实验题目 每本是8块钱买不同的书可以有优惠1 0 2 5%3 10%4 20%5 25%购买N本书,最少可花多少钱? 实验思想 下为购买不同书的最佳购买方案。1 8 Price2 15.2 Price*2*(1-0.05)3 21.6 Price*3*(1-0.1)4 25.6 Price*4*(1 ...
分类:其他好文   时间:2016-05-31 10:28:04    阅读次数:175
算价格01
题目: 输入购买图书的数量,根据购买图书的数量,有不同的优惠,计算出购买这些数量的图书需要花多少钱? 设计思想: 定义变量number为购买的图书数量,将number除以10取余数,用switch语句根据余数选择10以内的图书的价格price_part,再根据(number-yushu)/ 10 + ...
分类:其他好文   时间:2016-05-30 23:28:45    阅读次数:416
jq 修改input 标签的值
jq使用方法 price是我自己定义的数值 ...
分类:其他好文   时间:2016-05-30 23:18:54    阅读次数:798
Python-Week2-Homework
2.1 在 MONGODB中筛选房源 再在 1-3练习的基础上做修改。获取了url后只需要在获取详情页处添加: for title,district,img,price,hostName,hostPicSrc,hostSexual in zip(titles,districts,imgs,prices,hostNames,hostPicSrcs,hostSexuals): data={...
分类:编程语言   时间:2016-05-30 15:09:31    阅读次数:160
查询的使用方法
Delete from 表名 where 列名 = ‘’ 删除 Update 表名 set 列名= ‘’ where 列名 = ‘’ 改动 Update car ser price=price*0.9 where price >30 查询 Select * from 表名 全部列 Select 列名 ...
分类:其他好文   时间:2016-05-29 16:37:53    阅读次数:209
php 中 mysql 操作 语句 总结
$goods = D('Goods'); // 获得总条数价格大于1000的商品 $cnt = $goods -> where ('price > 1000') -> count(); sum() 总数 max() avg() 平均数 min() ...
分类:数据库   时间:2016-05-25 20:42:44    阅读次数:217
160523SQL简单的四种查询语句
--查询出产品价格大于15元并且一次被购买数量超过1个的产品。--1.select a.product_id,a.name from(select * from products p where p.price>15) a inner join(select * from purchases pr ...
分类:数据库   时间:2016-05-23 16:44:02    阅读次数:170
变量命名与注释
1. 函数命名,变量命名,文件命名要有描述性;少用缩写。尽可能给有描述性的命名,别心疼空间,毕竟让代码易于新读者理解很重要。不要用只有项目开发者能理解的缩写,也不要通过砍掉几个字母来缩写单词。好的代码:int price_count_reader; // 无缩写int num_errors; //  ...
分类:其他好文   时间:2016-05-22 09:41:23    阅读次数:173
LeetCode OJ 122. Best Time to Buy and Sell Stock II
Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple ...
分类:其他好文   时间:2016-05-21 11:29:59    阅读次数:126
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!