android天气预报实训程序清单,Android天气预报项目

1、项目效果图:

2、主页面MainActivity代码如下:

MainActivity.java

package com.qianfeng.weather;

import android.content.Intent;

import android.graphics.drawable.AnimationDrawable;

import android.os.Handler;

import android.os.Message;

import android.support.v7.app.AppCompatActivity;

import android.os.Bundle;

import android.view.LayoutInflater;

import android.view.View;

import android.widget.ImageView;

import android.widget.LinearLayout;

import android.widget.TextView;

import android.widget.Toast;

import org.json.JSONObject;

import java.util.ArrayList;

import java.util.List;

public class MainActivity extends AppCompatActivity {

private ImageView refreshIv;

private ImageView searchIv;

private TextView cityTv;

private TextView pmTv;

private TextView errorTv;

private TextView tempTv;

private TextView weatherTv;

private TextView windTv;

private TextView dateTv;

private View lineView;

private LinearLayout otherLl;

private List weekList;

private Handler handler;

private int code = 101100101;

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_main);

initView();

initData();

getData(code);

setListener();

}

@Override

protected void onActivityResult(int requestCode, int resultCode, Intent data) {

super.onActivityResult(requestCode, resultCode, data);

if (requestCode == 100) {

code = resultCode;

getData(code);

}

}

private void setListener() {

refreshIv.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View view) {

getData(code);

}

});

searchIv.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View view) {

Intent intent = new Intent(MainActivity.this,

SearchActivity.class);

startActivityForResult(intent, 100);

}

});

}

/**

*

*/

private void initData() {

//        在Android中借助handler类实现从服务器获取数据后更新UI页面(Handler原理)

handler = new Handler() {

@Override

public void handleMessage(Message msg) {

if (msg.what == 200) {

errorTv.setText((String) msg.obj);

}

if (msg.what == 100) {

errorTv.setText("");

//                    停止转圈动画

refreshIv.setBackgroundResource(R.mipmap.refresh);

List list = (List) msg.obj;

cityTv.setText(list.get(0).getCity());

pmTv.setText(list.get(0).getPm());

tempTv.setText(list.get(0).getTempCurrent());

weatherTv.setText(list.get(0).getWeather() + " " + list.get(0).getTemp());

windTv.setText(list.get(0).getWindCurrent());

dateTv.setText(list.get(0).getDate_y() + " " + list.get(0).getWeek());

if (list.get(0).getPm().substring(list.get(0).getPm().lastIndexOf(" ") + 1).equals("优")) {

lineView.setBackgroundColor(getResources().getColor(R.color.pm1));

} else if (list.get(0).getPm().substring(list.get(0).getPm().lastIndexOf(" ") + 1).equals("良")) {

lineView.setBackgroundColor(getResources().getColor(R.color.pm2));

} else if (list.get(0).getPm().substring(list.get(0).getPm().lastIndexOf(" ") + 1).equals("轻度污染")) {

lineView.setBackgroundColor(getResources().getColor(R.color.pm3));

} else if (list.get(0).getPm().substring(list.get(0).getPm().lastIndexOf(" ") + 1).equals("中度")) {

lineView.setBackgroundColor(getResources().getColor(R.color.pm4));

} else if (list.get(0).getPm().substring(list.get(0).getPm().lastIndexOf(" ") + 1).equals("重度")) {

lineView.setBackgroundColor(getResources().getColor(R.color.pm5));

} else if (list.get(0).getPm().substring(list.get(0).getPm().lastIndexOf(" ") + 1).equals("严重")) {

lineView.setBackgroundColor(getResources().getColor(R.color.pm6));

}

//                    清空水平滚动条的孙子辈视图

otherLl.removeAllViews();

//                    将未来五天的天气信息动态设置到水平滚动条中的线性布局中的子视图中

for (int i = 1; i < list.size(); i++) {

View view = LayoutInflater.from(getApplicationContext()).inflate(R.layout.item, null);

TextView weekItemTv = (TextView) view.findViewById(R.id.tv_week_item);

TextView weatherItemTv = (TextView) view.findViewById(R.id.tv_weather_item);

TextView tempItemTv = (TextView) view.findViewById(R.id.tv_temp_item);

weekItemTv.setText(list.get(i).getWeek());

weatherItemTv.setText(list.get(i).getWeather());

tempItemTv.setText(list.get(i).getTemp());

//                        动态将item视图添加到otherLl中

otherLl.addView(view);

}

}

}

};

weekList = new ArrayList<>();

weekList.add("星期一");

weekList.add("星期二");

weekList.add("星期三");

weekList.add("星期四");

weekList.add("星期五");

weekList.add("星期六");

weekList.add("星期日");

}

/**

* 北京

*/

private void initView() {

refreshIv = (ImageView) findViewById(R.id.refresh_iv);

searchIv = (ImageView) findViewById(R.id.search_iv);

cityTv = (TextView) findViewById(R.id.city_tv);

pmTv = (TextView) findViewById(R.id.pm_tv);

errorTv = (TextView) findViewById(R.id.error_tv);

tempTv = (TextView) findViewById(R.id.temp_tv);

weatherTv = (TextView) findViewById(R.id.weather_tv);

windTv = (TextView) findViewById(R.id.wind_tv);

dateTv = (TextView) findViewById(R.id.date_tv);

lineView = findViewById(R.id.line_view);

otherLl = (LinearLayout) findViewById(R.id.other_ll);

}

/**

* 获取网络数据

*/

private void getData(final int code) {

if (!NetUtils.isActive(MainActivity.this)) {

errorTv.setText("请确认是否有网");

Toast.makeText(MainActivity.this, "亲,确认您是否有网!", Toast.LENGTH_LONG).show();

return;

}

refreshIv.setBackgroundResource(R.drawable.pb_bg);

//封装 继承  多态

AnimationDrawable animationDrawable = (AnimationDrawable) refreshIv.getBackground();

animationDrawable.start();

//        开一个子线程进行网络请求  获取服务器json数据(注意:Android主线程不能操作耗时代码块)

new Thread(new Runnable() {

@Override

public void run() {

String uri = "http://weather.123.duba.net/static/weather_info/" + code + ".html";

String result = NetUtils.doGet(uri);

//                list集合中存的今天+未来五天的天气信息

List list = parserJson(result);

Message message = handler.obtainMessage();

//                集合数据为空时让其检查网络问题,或请程序员核查代码(未彻底优化代码结构以及代码性能等)

if (list == null || list.size() == 0) {

message.what = 200;

message.obj = "请检查网络";

handler.sendMessage(message);

return;

}

message.what = 100;

message.obj = list;

handler.sendMessage(message);

//                注意:子线程不能更新UI主线程的页面

//                cityTv.setText(list.get(0).getCity());

}

}).start();

}

/**

* 解析json数据

*

* @param result

*/

private List parserJson(String result) {

List list = new ArrayList<>();

try {

JSONObject jsonObject = new JSONObject(result);

JSONObject weatherInfo = jsonObject.getJSONObject("weatherinfo");

//            保存今天+未来五天的天气数据

for (int i = 1; i < 7; i++) {

WeatherBean weatherBean = new WeatherBean();

if (i == 1) {

weatherBean.setCity(weatherInfo.getString("city"));

weatherBean.setCityId(weatherInfo.getString("cityid"));

weatherBean.setDate_y(weatherInfo.getString("date_y"));

weatherBean.setPm("PM:" + weatherInfo.getString("pm") + " " + weatherInfo.getString("pm-level"));

weatherBean.setTempCurrent(weatherInfo.getString("temp") + "°");

weatherBean.setWindCurrent(weatherInfo.getString("wd") + " " + weatherInfo.getString("ws"));

}

weatherBean.setWeek(getWeek(i, weatherInfo.getString("week")));

weatherBean.setTemp(weatherInfo.getString("temp" + i));

weatherBean.setWeather(weatherInfo.getString("weather" + i));

//                将每天的天气信息保存到集合中

list.add(weatherBean);

}

return list;

} catch (Exception e) {

e.printStackTrace();

return null;

}

}

/**

* @param i

* @param week

* @return

*/

private String getWeek(int i, String week) {

int index = 0;

for (int j = 0; j < weekList.size(); j++) {

if (weekList.get(j).equals(week)) {

index = j;

break;

//                continue;

}

}

if (index + i < 8) {

index = index + i - 1;

} else {

index = index + i - 8;

}

return weekList.get(index);

}

}

NetUtils(网络工具类):

package com.qianfeng.weather;

import android.content.Context;

import android.net.ConnectivityManager;

import android.net.NetworkInfo;

import java.io.BufferedReader;

import java.io.InputStream;

import java.io.InputStreamReader;

import java.net.URL;

import java.net.URLConnection;

public class NetUtils {

/**

* 监测是否有网

*/

public static boolean isActive(Context context) {

ConnectivityManager manager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);

NetworkInfo info = manager.getActiveNetworkInfo();

if (info != null) {

return info.isConnected();

}

return false;

}

/**

* 根据传过来的接口地址,返回服务器吐出来的字符串

*/

public static String doGet(String uri) {

StringBuffer stringBuffer = new StringBuffer();

String result = null;

URLConnection connection = null;

InputStream inputStream = null;

try {

URL url = new URL(uri);

connection = url.openConnection();

connection.setConnectTimeout(10 * 1000);

inputStream = connection.getInputStream();

BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));

String line = bufferedReader.readLine();

while (line != null) {

stringBuffer.append(line);

line = bufferedReader.readLine();

}

result = stringBuffer.substring(stringBuffer.indexOf("(") + 1, stringBuffer.lastIndexOf(")"));

return result;

} catch (Exception e) {

e.printStackTrace();

return null;

}

}

}

WeatherBean.java

package com.qianfeng.weather;

public class WeatherBean {

private String city;

private String cityId;

private String week;

private String temp;

private String date_y;

private String wind;

private String weather;

private String pm;

private String tempCurrent;

private String windCurrent;

public String getCity() {

return city;

}

public void setCity(String city) {

this.city = city;

}

public String getCityId() {

return cityId;

}

public void setCityId(String cityId) {

this.cityId = cityId;

}

public String getWeek() {

return week;

}

public void setWeek(String week) {

this.week = week;

}

public String getTemp() {

return temp;

}

public void setTemp(String temp) {

this.temp = temp;

}

public String getDate_y() {

return date_y;

}

public void setDate_y(String date_y) {

this.date_y = date_y;

}

public String getWind() {

return wind;

}

public void setWind(String wind) {

this.wind = wind;

}

public String getWeather() {

return weather;

}

public void setWeather(String weather) {

this.weather = weather;

}

public String getPm() {

return pm;

}

public void setPm(String pm) {

this.pm = pm;

}

public String getTempCurrent() {

return tempCurrent;

}

public void setTempCurrent(String tempCurrent) {

this.tempCurrent = tempCurrent;

}

public String getWindCurrent() {

return windCurrent;

}

public void setWindCurrent(String windCurrent) {

this.windCurrent = windCurrent;

}

}

3、主页面XML布局如下:

activity_main.xml:

android:layout_width="match_parent"

android:layout_height="match_parent"

android:background="@mipmap/background">

android:id="@+id/refresh_iv"

android:layout_width="40dp"

android:layout_height="40dp"

android:layout_margin="12dp"

android:background="@mipmap/refresh" />

android:id="@+id/search_iv"

android:layout_width="40dp"

android:layout_height="40dp"

android:layout_alignParentRight="true"

android:layout_margin="12dp"

android:background="@mipmap/search" />

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_centerHorizontal="true"

android:layout_marginTop="12dp"

android:gravity="center_horizontal"

android:orientation="vertical">

android:id="@+id/city_tv"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:textColor="#FFF"

android:textSize="28sp" />

android:id="@+id/pm_tv"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:textColor="#FFF"

android:textSize="20sp" />

android:id="@+id/line_view"

android:layout_width="match_parent"

android:layout_height="10dp"

android:background="#6BCD07" />

android:id="@+id/error_tv"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:textColor="#F00"

android:textSize="20sp" />

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_centerVertical="true"

android:layout_marginLeft="12dp">

android:id="@+id/temp_tv"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:textColor="#FFF"

android:textSize="40sp" />

android:id="@+id/weather_tv"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_alignBottom="@+id/temp_tv"

android:layout_toRightOf="@+id/temp_tv"

android:textColor="#FFF" />

android:id="@+id/wind_tv"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_below="@+id/temp_tv"

android:textColor="#FFF" />

android:id="@+id/date_tv"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_below="@+id/wind_tv"

android:textColor="#FFF" />

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_alignParentBottom="true">

android:id="@+id/other_ll"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:background="#6666"

android:orientation="horizontal">

item.xml(用在Java代码动态加载后五天天气信息Item小布局):

android:layout_width="match_parent"

android:layout_height="match_parent"

android:gravity="center_horizontal"

android:orientation="vertical"

android:paddingLeft="5dp"

android:paddingRight="5dp">

android:id="@+id/tv_week_item"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_marginTop="12dp"

android:layout_marginBottom="12dp"

android:text="星期三"

android:textColor="#FFF"

android:textSize="18sp" />

android:id="@+id/tv_weather_item"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="多云"

android:textColor="#FFF"

android:textSize="18sp" />

android:id="@+id/tv_temp_item"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_marginTop="12dp"

android:layout_marginBottom="12dp"

android:text="20°C~29°C"

android:textColor="#FFF"

android:textSize="16sp" />

4、搜索页面实现SearchActivity.java,主要包含XML解析,具体代码如下:

SearchActivity.java

package com.qianfeng.weather;

import android.os.Bundle;

import android.support.v7.app.AppCompatActivity;

import android.view.View;

import android.widget.EditText;

import android.widget.ImageView;

import java.io.IOException;

import java.io.InputStream;

import java.util.Map;

public class SearchActivity extends AppCompatActivity {

private EditText auto = null;

private Map map = null;

private ImageView iv_search = null;

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_search);

initData();

initView();

}

private void initView() {

auto = (EditText) findViewById(R.id.autoTV);

iv_search = (ImageView) findViewById(R.id.iv_search);

iv_search.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

String city = auto.getText().toString().trim();

String codeStr = map.get(city);

if (codeStr != null) {

int code = Integer.parseInt(codeStr);

SearchActivity.this.setResult(code);

finish();

} else {

auto.setText("中国没有这样的城市,请重新输入"

+ "或"

+ "输入内容不能为空");

}

}

});

}

private void initData() {

try {

InputStream is = getAssets().open("city_code.xml");

map = new XMLParser().getMap(is);

} catch (IOException e) {

e.printStackTrace();

}

}

}

XMLParser(XML解析工具类)

package com.qianfeng.weather;

import org.xmlpull.v1.XmlPullParser;

import org.xmlpull.v1.XmlPullParserException;

import org.xmlpull.v1.XmlPullParserFactory;

import java.io.BufferedReader;

import java.io.InputStream;

import java.io.InputStreamReader;

import java.security.Key;

import java.util.HashMap;

import java.util.Map;

import static java.net.Proxy.Type.HTTP;

public class XMLParser {

/**

*xml解析  pull  sax 。。。

*/

public Map getMap(InputStream is) {

Map map = new HashMap<>();

try {

XmlPullParserFactory factory = XmlPullParserFactory.newInstance();

XmlPullParser parser = factory.newPullParser();

parser.setInput(new BufferedReader(new InputStreamReader(is)));

//            parser.setInput(is,null);

//            XmlPullParser.END_DOCUMENT

//            XmlPullParser.START_DOCUMENT

//            XmlPullParser.START_TAG

//            XmlPullParser.END_TAG

//            XmlPullParser.TEXT

int eventType = parser.getEventType();

while (eventType != XmlPullParser.END_DOCUMENT) {

if (eventType == XmlPullParser.START_TAG) {

String name = parser.getName();

if ("key".equals(name)) {

String key = parser.nextText();

parser.next();

parser.next();

String value = parser.nextText();

map.put(key, value);

}

}

parser.next();

eventType = parser.getEventType();

}

} catch (Exception e) {

e.printStackTrace();

}

return map;

}

}

activity_search.xml(搜索页面布局)

android:layout_width="match_parent"

android:layout_height="match_parent"

android:background="@mipmap/background"

android:padding="5dp"

android:orientation="vertical" >

android:id="@+id/iv_search"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_alignParentRight="true"

android:layout_marginRight="17dp"

android:src="@mipmap/search" />

android:id="@+id/autoTV"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:layout_alignParentEnd="true"

android:layout_alignParentRight="true"

android:layout_marginEnd="41dp"

android:layout_marginRight="41dp"

android:hint="请输入城市" />

5、AndroidManifest清单文件如下:

package="com.qianfeng.weather">

android:allowBackup="true"

android:icon="@mipmap/ic_launcher"

android:label="@string/app_name"

android:roundIcon="@mipmap/ic_launcher_round"

android:supportsRtl="true"

android:theme="@style/AppTheme">

7、加载网络不好转圈动画用的自定义帧动画pb_bg.xml,具体代码如下:

android:drawable="@mipmap/pb00"

android:duration="200"/>

android:drawable="@mipmap/pb01"

android:duration="200"/>

android:drawable="@mipmap/pb02"

android:duration="200"/>

android:drawable="@mipmap/pb03"

android:duration="200"/>

android:drawable="@mipmap/pb04"

android:duration="200"/>

android:drawable="@mipmap/pb05"

android:duration="200"/>

android:drawable="@mipmap/pb06"

android:duration="200"/>

android:drawable="@mipmap/pb07"

android:duration="200"/>

android:drawable="@mipmap/pb08"

android:duration="200"/>

android:drawable="@mipmap/pb09"

android:duration="200"/>

android:drawable="@mipmap/pb10"

android:duration="200"/>

android:drawable="@mipmap/pb11"

android:duration="200"/>

6、资源图片等具体代码可参考本人共享发送上传代码资源Weather.zip

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/550764.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

harmonyOS智慧屏,在鸿蒙HarmonyOS智慧屏上实现一款粗糙的计算器

在学习的路上我们不能只是停留在对理论知识的理解&#xff0c;还应该将理论和实战进行结合&#xff0c;这样才有利于我们能够更有深度的掌握知识&#xff0c;最终形成自己的知识体系结构。我们在实战的时候&#xff0c;不仅可以巩固我们的理论知识&#xff0c;还能够在实战中发…

imx6 android快速启动,android启动不起来(已解决)

我使用imx6dl,使用JB4.3.3-1.1.0版本&#xff0c;但在启动的时候最后停在了Freeing init memory: 232K&#xff0c;就没了动静&#xff0c;各位大侠帮忙分析一下吧&#xff1a;以下是log:U-Boot 2009.08 ( 1&#xfffd;&#xfffd;月 08 2014 - 15:47:46)CPU: Freescale i.MX…

android系统语音合成,android 语音合成报错

发现了2个问题第一个貌似是复制离线的资源出错了(已经核对过读写等权限)&#xff1a;12-19 19:54:49.739 32006-32159/com.zhanglf.youxuanz I/NonBlockSyntherizer: 初始化开始12-19 19:54:49.748 32006-32159/com.zhanglf.youxuanz W/System.err: java.io.FileNotFoundExcept…

华为公布4月升级鸿蒙,华为余承东:鸿蒙OS今年4月见,华为Mate X2首批升级

随着搭载鸿蒙OS的终端设备日益增多&#xff0c;鸿蒙系统何时应用于手机成为舆论关注的焦点。特别是在2020年12月华为发布鸿蒙OS 2.0手机开发者Beta版本之后&#xff0c;公众对手机上运行鸿蒙OS的期待值越来越高。余承东在发布会上表示&#xff0c;从今年4月开始&#xff0c;华为…

android酷狗缓存目录,酷狗缓存的歌曲在哪个文件夹_酷狗音乐缓存的歌曲在电脑哪个目录-win7之家...

酷狗是一款很流行的音乐播放软件&#xff0c;当我们在听歌曲的时候&#xff0c;默认会缓存到文件夹中&#xff0c;方便下次没有网络的时候可以继续听这首歌&#xff0c;有些用户想要知道酷狗缓存的歌曲在哪个文件夹&#xff0c;我们可以从主界面中进入即可找到&#xff0c;接下…

html内容点击按钮自动复制,HTML页面---复制按钮的使用(包含弹层)

先说一下我的整体方案&#xff1a;用到了clipboard插件&#xff0c;官方地址和github地址&#xff0c;也可以参考中文说明。clipboard插件实测&#xff1a;在PC端的浏览器(试了mac上的safari,chrome,firefox)可用&#xff0c;iOS 10.3上的safari可用&#xff0c;手机上的微信QQ…

html给文字添加阴影效果,如何设置样式之添加文字阴影、边框阴影或者添加自己的CSS...

以下的例子只是样式面板的使用案例之一&#xff0c;样式面板功能很强大&#xff0c;几乎能完成您的所有需求&#xff0c;详情参阅这里。边框的案例可以参阅这里。一、如何给文字添加阴影效果首先&#xff0c; 打开CSS工作面板请依次点击&#xff1a;右侧栏“样式面板”按钮(见第…

html5图片剪切板,JavaScript 网页端复制图片到剪切板

前端页面可能需要复制图片到剪切板的功能&#xff0c;这里使用JavaScript来实现这一功能&#xff0c;兼容大部分浏览器全部代码复制图片到剪切板复制图片var SelectText function (element) {var doc document;if (doc.body.createTextRange) {var range document.body.crea…

java中的html标签位置,Java 过滤所有html标签,复制文件到指定位置

public static String filterHtml(String string){String str string.replaceAll("", "").replaceAll("[a-zA-Z][1-9]?>", "");return str;}复制文件到指定位置public static boolean inPutStreamTofile(InputStream inStream, S…

湖北大学计算机科学与技术怎么样,湖北大学(专业学位)计算机技术考研难吗

考研真题资料优惠价原价选择很多考生在准备湖北大学(专业学位)计算机技术考研难吗&#xff1f;是考研报考的时候都会产生这样的疑问&#xff1a;这个专业的研究生好吗&#xff1f;适合我吗&#xff1f;对我以后的人生和职业会有帮助吗&#xff1f;考生在准备湖北大学(专业学位)…

计算机打开共享网络连接打印机共享打印机,网络共享打印机连接不上怎么办_电脑连不上共享打印机如何解决-win7之家...

通常为了方便多人可以一起共用一台打印机&#xff0c;都会在局域网络中将打印机共享&#xff0c;可是近日有不少用户却遇到网络共享打印机连接不上的情况&#xff0c;这该怎么办呢&#xff0c;确认打印机已经共享&#xff0c;并且电脑在同一个家庭组里&#xff0c;针对脑连不上…

html盒子居中的方式,CSS盒子居中三种方法

前言CSS盒子居中&#xff0c;我觉得是很有必要学习一下的。特别是第三种方法&#xff0c;奇淫技巧升级版&#xff0c;也是生产环境中非常常见的一种方法&#xff0c;不需要知道宽度&#xff0c;随着祖先元素的变化而变化&#xff01;1.常规方法常规方法只需要给盒子设置宽高&am…

台式计算机如何上网设置,台式电脑怎样设置宽带自动连接?

1、以Win7系统为例&#xff0c;在桌面任务栏中对着网络图标击右键&#xff0c;选择“打开网络和共享中心”菜单&#xff1b;2、在打开的页面中&#xff0c;点击页面左侧“更改适配器设置”按钮&#xff1b;3、在打开的页面中&#xff0c;找到宽带连接设置项&#xff0c;对其击右…

台式计算机更新不了,台式机更新造成电脑关不了机怎么办

电脑无法关机这个问题并不常见&#xff0c;可一旦出现这种问题了&#xff0c;那么我们要如何正确的处理它呢&#xff1f;想处理这个问题&#xff0c;首先&#xff0c;我们需要先了解下到底是什么原因导致的 Windows 无法正常关机。一般情况下&#xff0c;在 Windows 系统中&…

认识计算机的桌面,电脑桌面的基础知识教程,教你认识电脑桌面

教你认识电脑桌面1、工作区 桌面上的大片空白称为工作区&#xff0c;上面可以放置各种图标&#xff0c;显示打开的窗口&#xff0c;桌面上一般放置几个固定的图标和带箭头的快捷方式图标&#xff1b;2、图标 图标是一个小图片下面有文字&#xff0c;一个图标代表一个文件或者是…

教师使用计算机职责,教师办公室计算机使用制度

首页 > 制度职责 > 教师办公室计算机使用制度发布时间&#xff1a;2019-04-01阅读 (2918)教师办公室计算机使用制度之相关制度和职责&#xff0c;为了规范我校计算机的使用与管理,提高工作效率,使计算机更好地发挥其作用,特制定本制度。1、计算机周围应保持干燥,不应把装…

烟台大学计算机专业调剂贴吧,烟台大学计算机与控制工程学院2021年考研复试与调剂的说明...

如果想要顺利成为一名研究生&#xff0c;那么对于考研复试的重视必不可少。考研复试是考生在通过初试的基础上&#xff0c;对考生业务水平和实际能力的进一步考察。如何了解报考院校的考研复试要求呢&#xff1f;中公考研小编整理烟台大学计算机与控制工程学院2021年考研复试与…

南京理工大学计算机学院教师信息网,南京理工大学教师信息

已发表100篇论文&#xff0c;其中IEEE/ACM Transactions或者CCF A类会议长文60篇&#xff0c;具体信息见&#xff1a;https://imag-njust.net/zcli/部分论文如下&#xff1a;19. Zechao Li, Jinhui Tang, Liyan Zhang, Jian Yang. Weakly-supervised Semantic Guided Hashing f…

哈工大华中科技大学计算机学院官网,我国重点大学排名盘点,哈工大重回前十,北理工只排十四...

最近&#xff0c;同学会公布了我国重点大学排名&#xff0c;这个排行榜直观地显示了我国的高校、全国排名、学校运营水平。这次荣登榜首的是圆明园职业技术学院——北京大学&#xff0c;学校和清华轮番追逐第一&#xff0c;这次的北大胜出&#xff0c;这两所大学都把重点放在了…

计算机网络最短路径路由选择,最短路径算法Dijkstra算法在路由选择中的应用.pdf...

最短路径算法Dijkstra算法在路由选择中的应用.pdf计算机与网络江苏联合职业技术学院徐州机电工程分院 王恒青 江苏联合职业技术学院徐州生物工程分院 宋如敏[摘要】本文介绍了路由算法的设计目标以及种类&#xff0c;从最短路径算法的基本原理出发&#xff0c;举实例推演了Dijk…