我们要来定义一个带有带有高和宽的矩形,并且要提供一个计算其面积的area方法。
We want to write a class Rectangle, which has width and height as its data and a method area that computes the area.
这辆“宝马”车长五米,宽2.15米,高1.6米,足足6.5吨重,由红砖、水泥、钢铁做成,60万元的造价,堪比宝马。
The brick car is 5 meters long, 2.15 meters wide, 1.6 meters high and weighs 6.5 tons. The car, made of red bricks, cement and steel, cost 600,000 yuan, which is the same price as a BMW.
整幅画高1.83米,宽3.05米,以木板为底,画面全部用当地盛产的玉米、黄豆、荞麦等20多种杂粮拼贴。
The picture, 1.83m high and 3.05m wide, is made on a wooden block with over 20 kinds of local grain stuck on it, including corn, soy bean and buckwheat.(See photo)
康奈尔大学的研究员发现,人们往又矮又宽的酒杯里倒酒时会倒得多一些,最多可以比往高细酒杯里倒酒时多倒30%。
Cornell University researchers discovered that people poured up to 30 percent more into short, wide glasses than into tall, slender ones.
然后解析返回的XML代码,获得图片的URL、宽、高和标题。
The returned XML code is then parsed to get the URL as well as the width, height, and title of each image.
他住在一个10英尺长、6英尺宽、10英尺高的小房间里。
He occupies a cell 10 foot long, 6 foot wide and 10 foot high.
有些壮观的教堂不过是一些小建筑,只有4米宽,6米高。
Some of these spectacular churches are no more than small buildings, barely 4 meters wide and 6 meters tall.
那些台阶像宫殿的台阶一样宽,像教堂塔楼一样高。
The steps are as broad as those of a palace, and as high as to a church tower.
这个矩形的尺寸应该是250px宽50 px高。
The dimensions of this shape should be 250px wide and 50px high.
整车车长3.3米,宽1.465米,高1.41米,轴距2.175米。
The whole body measures 3.3 meters long, 1.465 meters wide, and 1.41 meters high. The wheelbase of the vehicle is 2.175 meters.
大阴渠确有八尺宽七尺高。
The Grand Sewer is, in fact, eight feet wide and seven feet high.
按钮的尺寸是250px宽,50px高。
然而,不管你取该范围中的哪个长度,都无法否认一艘300腕尺长,50腕尺宽,30腕尺高的船是相当大的。
Whichever length one plumps for, however, a boat 300 cubits long, 50 cubits wide and 30 cubits high is undeniably immense.
iPhone 中页面顶部的可视查看区为 320像素(宽)X 356 像素(高)。
The visible viewing area at the top of a page on an iPhone is 320 pixels wide and 356 pixels high.
隧道1200米长,5米高,4米宽,位于河南省。
The 1200 meter long tunnel is about 5 meters high and 4 meters wide. It is located in the Henan Province of China.
第二个测试确保高和宽不符合标准的横幅不被保存,具有有效规格的横幅则被正确保存。
The second test makes sure that a banner with an incorrect height and width cannot be saved, and that the model correctly saves a banner with valid specs.
它高50米,宽120米,实际上是由70 000个可乐空瓶做成的,这仅仅是为了好玩而已。
It was 50m tall and 120m wide but just for fun it was actually made from 70, 000 empty Coke bottles!
带上手电筒步入印第安隧道,大约有30英尺高50英尺宽,便于更好地探索。
Grab a flashlight and head to Indian Tunnel, which, at 30 feet high and 50 feet wide, allows for comfortable exploring.
纸盒的尺寸为高17cm,宽30 cm,长50 cm,体积为0.026 m3,毛重为23.5kg。
The dimension of the cases are 17cm high, 30 cm wide and 50 cm long with a volume of about 0.026 cubic meter. The gross weight is 23.5kg.
这尊名叫“一个女人的石灰岩雕像”高25厘米,宽35厘米。
The model, simply called 'limestone statue of a woman', measures 25 cm high by 35 cm wide.
这幅由玻璃纤维和强化塑料制成的油画,高6米(20尺),宽4.6米(15尺),重达1.5吨。
The paintings, now made of glass fibre and reinforced plastic, are six meters (20 feet) high and 4.6 meters (15 feet) wide, and weigh up to 1.5 tons.
加拿大一侧的瀑布是马蹄型瀑布,它大约有800米宽,近五十米高,它的形状像一个U字型,又称马蹄型。
It is about eight hundred meters wide and almost fifty meters high. It is shaped like the letter U, or a horse's shoe.
这个构造以前是在悬崖峭壁上,现在则是在海中接受着海浪的冲击,大约80英尺(24米)高,20英尺(6米)宽。
The structures, once a part of the towering mainland cliffs, now sit about 80 feet (24 meters) high and 20 feet (6 meters) wide in the midst of crashing waves.
空中花桥的概念,是在黄浦江上,建一座200公尺高、600公尺长,50公尺宽,供行人使用的桥。
As to the Flower bridge in the Sky, it is a pedestrian bridge to be built on the Huangpu River, 200 meters high, 600 meters long and 50 meters wide.
这辆车由轻型材质制造,其中包括铝、碳纤维、玻璃纤维、聚碳酸酯等,车身长49英尺(15米),宽8英尺(2.5米),高5英尺5英寸(1.65米)。
Made of lightweight materials including aluminium, carbon fibre, fibreglass and polycarbonate, it is 49ft long (15 metres), 8ft wide (2.5 metres) and 5ft 5in high (1.65 metres).
这里的地下通道高6.5英尺(约1.98米),约有城郊的一个双车道那么宽。
The tunnels here are 6.5 feet high and about the width of a two-way suburban street.
这里的地下通道高6.5英尺(约1.98米),约有城郊的一个双车道那么宽。
The tunnels here are 6.5 feet high and about the width of a two-way suburban street.
应用推荐