这个免费这题怎么做拍一下做

这个题怎么做_百度知道
这个题怎么做
我有更好的答案
补充说明 12.加强重点 8.分行举例 9.用在副标题前 10.表示语音的延长 4就是写出句中破折号的作用1.表示解释说明 2.标明作者 11.表示插说 6.电脑应用 7.表示意思的递进 3.表示意思的转换.表示总结上文 13,跳跃或转折 5
为您推荐:
其他类似问题
您可能关注的内容
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。(The Other)
(今年做个红娘)
(爱吃拉面酱)
第三方登录:这题怎么做啊【智力题吧】_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:45,969贴子:
这题怎么做啊收藏
如果从圆球2开始,将相连接的4个圆球上的数字相加(含圆球2),能得到39的可能性有多少种?注意,允许把一组数字的反方向排列视作一条新路线来计算。这是题目
顶顶顶顶顶顶
第一个是52
登录百度帐号推荐应用后使用快捷导航没有帐号?
只需一步,快速开始
请完成以下验证码
请完成以下验证码
主题帖子荣誉
查看: 454|回复: 3
& 累计签到:86 天连续签到:1 天
马上注册加入鱼C,享用更多服务吧^_^
才可以下载或查看,没有帐号?
写出一个类Computer,并由该类做基类派生出子类Notebook和Desktop。其中Computer类具有cpu、ram两个成员变量,分别为String类型、整型,且具有公有的getRam成员方法,用于返回ram变量的值。 Notebook类具有成员变量factory, 为String类型,Desktop类具有comclass成员变量, 为String类型。
& 累计签到:142 天连续签到:1 天
&&&
写出一个类Computer,并由该类做基类派生出子类Notebook和Desktop。
其中Computer类具有cpu、ram两个成员变量,分别为String类型、整型,且
具有公有的getRam成员方法,用于返回ram变量的值。 Notebook类具有成员
变量factory, 为String类型,Desktop类具有comclass成员变量, 为String
类型。
&&&
class Computer():
& & &&&通用的计算机类型&&&
& &
& & def __init__(self, cpu_model, ram_capacity):
& && &&&
& && &&&self.cpu_model = cpu_model
& && &&&self.ram_capacity = ram_capacity
& &
& & def getRam(self):
& && &&&&&&用于返回计算机的内存容量&&&
& && &&&
& && &&&return self.ram_capacity
& &
& & def getCpu(self):
& && &&&&&&用于返回计算机cpu型号和参数&&&
& && &&&
& && &&&cpu_dict = {
& && && && && & &Core i3&:&1.40GHz&,
& && && && && & &Core i5&:&3.20GHz&,
& && && && && & &Core i7&:&3.40GHz&,
& && && && && & }
& && &&&
& && &&&cpu_model_list = []
& && &&&
& && &&&for per_cpu in cpu_dict.keys():
& && && && &cpu_model_list.append(per_cpu)
& && &&&
& && &&&if self.cpu_model in cpu_model_list:
& && && && &cpu_information = &您的计算机CPU型号为 &&& & + self.cpu_model
& && && && &cpu_information += &\n-- 主频参数 -- :& + cpu_dict[self.cpu_model]
& && && && &print(cpu_information)
& && &&&else:
& && && && &cpu_information = &您的计算机CPU型号为 &&& & + self.cpu_model
& && && && &cpu_information += &\n-- 主频参数 -- :暂无&
& && && && &print(cpu_information)
class NoteBook(Computer):
& & &&&笔记本电脑的类继承自通用计算机类&&&
& &
& & def __init__(self, cpu_model, ram_capacity):
& && &&&
& && &&&super().__init__(cpu_model, ram_capacity)
& && &&&self.factory = &DELL&
& &
& & def set_factory(self, factory):
& && &&&
& && &&&self.factory = factory
& && &&&print(&您的电脑生产厂家是 &&& & + self.factory)
& && &&&
class DeskTop(Computer):
& & &&&台式电脑的类继承自通用计算机类&&&
& &
& & def __init__(self, cpu_model, ram_capacity):
& && &&&
& && &&&super().__init__(cpu_model, ram_capacity)
& && &&&self.other = NoteBook(cpu_model, ram_capacity)复制代码
Java我不会,用Python写了一个,你看看.....哈哈哈哈
& 累计签到:1 天连续签到:1 天
package com.
* Created by Andy_Liu on .
//写出一个类Computer,并由该类做基类派生出子类Notebook和Desktop。
// 其中Computer类具有cpu、ram两个成员变量,分别为String类型、整型,且具有公有的getRam成员方法,用于返回ram变量的值。
// Notebook类具有成员变量factory, 为String类型,Desktop类具有comclass成员变量, 为String类型。
public class Computer {
& & private S
& & private I
& & public Integer getRam() {
class Desktop extends Computer {
& & private S
class Notebook extends Computer {
& & private S
& 尚未签到
小甲鱼强烈推荐
给我一节课的时间,帮你从繁琐的工作中解脱出来!
- - - - - - - - - - - -
极客Python,新课程!!
特效不会给你基本工资,但却能让你升职加薪
- - - - - - - - - - - -
有备无患,念念不忘
移动客户端下载(未启用)
微信公众号
Powered by
Copyright &
&&& All Rights Reserved.}

我要回帖

更多关于 作业帮在线使用 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信