2018年12月8日(週末作業11)
依次輸入五句話,然後將它逆序輸出
import java.util.Scanner; public class 週末課後作業11 { public static void main(String[] args) { Scanner input = new Scanner(System.in); String s = "0"; System.out.println("請輸入5句話"); String a[] = new String[5]; for (int i = 1; i <= a.length; i++) { System.out.println("請輸入第" + i + "句話"); String r = input.next(); a[i - 1] = r; } System.out.println("逆序輸出的為"); for (int c = 0; c < a.length / 2; c++) { s = a[c]; a[c] = a[a.length - 1 - c]; a[a.length - 1 - c] = s; } for (String x : a) { System.out.println(x); } } }
相關推薦
2018年12月8日(週末作業11)
依次輸入五句話,然後將它逆序輸出 import java.util.Scanner; public class 週末課後作業11 { public static void main(String[] args) { Scanner input = new Scanner(Syste
程式設計俱樂部每日一練(2018年12月7日)QAQ的小遊戲
程式設計俱樂部每日一練(2018年12月7日)QAQ的小遊戲 Description Recently,QAQ fell in love a small game,which simulates browser browsing web pages.It has three kind
程式設計俱樂部每日一練(2018年12月3日)A * B Problem大數乘法
程式設計俱樂部每日一練(2018年12月3日)A * B Problem大數乘法 A * B Problem Description Now Give you two integers A and B , please caculate the value of A multiply
程式設計俱樂部每日一練(2018年12月2日) A - B problem大數減法
程式設計俱樂部每日一練(2018年12月2日) A - B problem大數減法 Description Now, Give you two intgers A and B , Please calculate the value of A minus B. Attation:
日結(2018年12月22日)
春日的雨水,夏日的熱情,秋日的餘暉,冬至的來臨。今天是快樂的一天,也是勞累的一天 這是荒唐的一天,也是值得紀念的一天。從早上9點多開始的鮑師傅之旅,伴隨著兩個小時的無奈和瀕臨崩潰的絕望結束。雖然很辛苦,但是排到的那一刻就彷彿一段debug很久的程式跑出了自己希望的結果一樣,這種感覺是真的有點開心(我
日結(2018年12月23日)
時間的界限,休閒與空閒的分水嶺 一夜求知帶來的並不是充實,並不是滿足,而是深深的疲倦。昏暗的燈光,飛動的手指,在泛著黃光的鍵盤上敲下一個個按鍵。閃爍的游標一格格的退後,在漆黑的螢幕上留下一行行程式碼。勞累的手指緩緩的搖動著酒杯,大腦飛爍的思路伴著嘴裡的醇香,融進沒有“感情”的字母中。手邊的錶針滴滴答答
Windows7 安裝Anaconda,在Python3.7版本下安裝Tensorflow(2018年12月28日)
Win 7+Python3.7+Tensorflow安裝 Step1:安裝Anaconda Step2:Tensorflow的安裝 出處:https://blog.csdn.net/weixin_38283428/article/details/842017
Anaconda安裝和使用Numpy、scipy、pandas、Scikit-learn(資料分析)(2018年12月28日)
1、Anaconda介紹 安裝python的方法有很多種,資料分析方面比較常用Anaconda。Anaconda是一個開源的Python發行版本,其包含了conda、Python等多個科學包及其依賴項,也可以使用Miniconda這個較小的發行版,僅包含conda和 Python。Anacond
2018年5月8日筆記
grep 字節 width RoCE system ID 字符串類型 工作 abs CentOS 7上安裝mysql # CentOS 7 安裝mysql 1. 檢測系統是否自帶安裝 mysql rpm -qa | grep mysql 2. 若已安裝,可以進行卸
2018年6月8號(過河)
++ col c++ 所有 容易 thml pan 大於 暴力 題目描述 在河上有一座獨木橋,一只青蛙想沿著獨木橋從河的一側跳到另一側。在橋上有一些石子,青蛙很討厭踩在這些石子上。由於橋的長度和青蛙一次跳過的距離都是正整數,我們可以把獨木橋上青蛙可能到達的點看成數軸上的一
2018年10月8日django檢視版本命令,python2&3中print區別,iterable報錯,SSH,pycharm/ubuntu顏色設定
檢視Django版本的命令: 1. 在終端中輸入: python -m django –-version 2. 進入python互動環境: import django &nb
MIRAI DINING Co., Ltd.:KYOTO MISO RAMEN KAZU於2018年12月1日開業
―主打香濃味美的味噌拉麵,讓您欲罷不能― 日本京都--(美國商業資訊)--ZIGEN Co., Ltd. (Nakagyo-ku, Kyoto)旗下子公司MIRAI DINING Co., Ltd. (Nakagyo-ku, Kyoto)的第二間餐廳“KYOTO MISO RAMEN KAZ
2018年12月7日 字串格式化2 format與函式1
tp7="i am \033[44;1m %(name)-25.6s\033[0m"%{"name":"sxj2343333"} print(tp7) #-為左對齊,\033[44;1m \033[0m 為選取44色號的顏色 tp1="I am {},age{}
2018年12月7日 字符串格式化2 format與函數1
ron none love img 小數位 mage alt abc 格式 tp7="i am \033[44;1m %(name)-25.6s\033[0m"%{"name":"sxj2343333"} print(tp7) #-為左對齊,\033[44;1m \
指標上機題目1 2018年12月3日
指標上機題目1 2018年12月3日 以下內容僅供娛樂,歡迎隨時探討,請多指教! 1)編寫程式:完成函式void my_power(double x,int y,double *mypow)的定義,該函式的功能是:求xy(即x的y次方)存入指標變數mypow所指向的存貯單元中,並編寫主程式,
[2018-11-27]2018年12月1日寧波dotnet社群線下活動
離上次活動,轉眼又過了一個月,幸得各路大神支援,於本週六(12月1日),寧波dotnet社群的線下分享活動又來啦! 活動嘉賓及主題 董斌輝 2015-2019年微軟全球最有價值專家(.NET方向) 2010年6月畢業於上海理工大學,現就職於中通快遞集團科技與資訊中心,主要負責快遞時效質量控制、路由相關
【Lazy1.1.1 許可權管理系統 】2018年12月01日正式釋出
本程式是基於最新的jfinal3.5+easyui1.5.2搭建的後臺許可權管理系統MYSQL版,包括選項資料字典、層級資料字典、部門管理、選單管理、角色管理、使用者管理、日誌管理,既適合新手學習,也適合在此基礎上開始您的應用程式開發旅程。演示站點: http://admin.laz
【Lazy.js 1.0.1】2018年12月01日正式釋出
Lazy.js是一個將常用JS方法、AJAX方法、easyui操作方法進行總結歸集的JS工具類。目的很簡單,就是將前端WEB開發常用的JS操作方法歸整合一個js物件,以方便今後爽快的呼叫。 它包括3個方法集,如果你的前端沒有使用easyui,你可以在lazy.js中去除前兩個方法集。 l
小米 OJ 賽題——高弗雷勳爵(2018年09月13日 17:30 ~ 19:00)
題目描述 第七軍團的據點有數不清的敵人,高弗雷拿著一把附魔火槍,射出的子彈會在敵人間跳躍,一發子彈就能對所有敵人造成 2 點傷害,如果該子彈導致了任意敵人死亡(即血量小於等於 0),該子彈還會再次對所有敵人造成2點傷害,直到沒有新的敵人死亡為止。那麼,高弗雷需要打出
2018年12月13日計劃
最近由於臨近考試,決定先更新一部分c++的基礎知識; 先寫關於類的,以前c的老底子就留到以後再寫了; 明年要準備藍橋杯了,acm的題和演算法競賽的書也會時常更行一下; 每天都要學習一點; 我的目標是用自己的理解,結合教材把知識點講出來; 看能否讓一個有c基礎的人看懂; 由於過幾天就四級了,所以不會