程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> PHP編程 >> 關於PHP編程 >> PHP程序員:寫個程序來賣切糕!

PHP程序員:寫個程序來賣切糕!

編輯:關於PHP編程

[代碼] 寫個程序來賣切糕

“聽說切糕最近很火熱,很賣錢。所以,我也想發個小財……”
view source print? 01 public class 賣切糕{ 02   03        public static void main(String[] args) throws Exception{ 04             String[] 很多切糕 = {"其","實","第","一","次","聽","說","要","拍","賣","切","糕","廣","告","我","是","拒","絕","的",",","因","為",",","你","不","能","讓","我","拍",",","我","就","馬","上","去","拍","。","第","一","我","要","試","一","下",",","因","為","我","不","想","拍","完","了","以","後","再","加","一","些","特","技","上","去",",","切","糕","“咣”","一","下",",","很","亮、","很","碉","堡",",","這","樣","觀","眾","出","來","一","定","會","罵","我",",","根","本","沒","有","這","樣","的","切","糕",",","就","證","明","上","面","那","個","是","假","的","。","後","來","我","也","經","過","證","實","他","們","確","實","是","貨","真","價","實","的","切","糕",",","我","賣","大","概","一","個","月","左","右",",","感","覺","還","不","錯",",","賣","了","幾","百","個","萬",",","後","來","我","在","賣","的","時","候","也","要","求","他","們","不","要","加","特","技",",","因","為","我","要","讓","觀","眾","看","到",",","我","賣","完","之","後","是","這","個","鳥","樣",",","你","們","賣","完","之","後","也","會","是","這","個","熊","樣","!"}; 05             while(true){ 06               for(int i = 0; i < 很多切糕.length; i++){ 07               System.out.print(很多切糕[i]); 08               Thread.sleep(150); 09               } 10               System.out.println(""); 11               System.out.println("--------------------再來一炮--------------------"); 12               Thread.sleep(5000);   13             } 14         } 15   16     }

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved