摘要: 今天开始,准备认认真真的学一遍Java。虽然之前也学过Java,都是东一榔头西一棒的,从来没有完完整整,认认真真的去学过,而今漫步从头越。 1 /* 2 3 最基本的输出 4 int类型相加 5 int类型转换为String类型 6 double类型转换为String类型 ... 阅读全文
posted @ 2016-01-20 23:00 爱在夕阳下 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 HelloWorld 5 6 7 Hello World 1 8 Hello World 2 9 Hello World 1 10 Hello W... 阅读全文
posted @ 2015-12-07 17:37 爱在夕阳下 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/python 2 # -*- coding: utf-8 -*- 3 import json 4 from urllib.request import urlopen 5 from urllib.parse import urlencode 6 7 #-... 阅读全文
posted @ 2015-11-03 18:46 爱在夕阳下 阅读(209) 评论(0) 推荐(0) 编辑
摘要: map()函数def format_name(s): return s.capitalize()print map(format_name, ['adam', 'LISA', 'barT'])Result: ['Adam', 'Lisa', 'Bart'] 把函数作为参数1 impor... 阅读全文
posted @ 2015-10-08 22:45 爱在夕阳下 阅读(237) 评论(2) 推荐(0) 编辑
摘要: 1 class XingDemo { 2 public static void main(String[] args) { 3 int j = 0; 4 int i = 0; 5 int k = 0; 6 for(i = 0;... 阅读全文
posted @ 2015-09-10 14:45 爱在夕阳下 阅读(166) 评论(0) 推荐(0) 编辑
摘要: package cn.togeek.job;public class Test { public static void main(String[] args) throws Exception { System.out.println("Hello,world!"); }} 1... 阅读全文
posted @ 2015-09-01 19:41 爱在夕阳下 阅读(265) 评论(0) 推荐(0) 编辑
摘要: Git常用操作命令:1)远程仓库相关命令检出仓库:$ git clone git://github.com/jquery/jquery.git查看远程仓库:$ git remote -v添加远程仓库:$ git remote add [name] [url]删除远程仓库:$ git remote r... 阅读全文
posted @ 2015-08-30 20:20 爱在夕阳下 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 今天听说一同事用cx_freeze将PyQt5打包成功,很是惊奇,回来自己试了用Pyinstaller打包,成功1.安装pyinstallerPython2.6+直接使用pip install pyinstaller安装即可因为我用的是Python3.4,所以只好到github上下支持3.x的版本h... 阅读全文
posted @ 2015-08-26 00:37 爱在夕阳下 阅读(1536) 评论(0) 推荐(0) 编辑
摘要: 1 # -*- coding: utf-8 -*- 3 """ 4 定时器方法 5 """ 6 import threading 7 import time 8 9 10 class Timer(threading.Thread):11 def __init__(self, fn, ar... 阅读全文
posted @ 2015-07-02 13:24 爱在夕阳下 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 1 # -*- coding: utf-8 -*- 2 3 from time import clock 4 import numpy as np 5 from math import sin 6 7 t = [i * 0.0001 for i in range(10000000)] 8 st... 阅读全文
posted @ 2015-07-02 13:20 爱在夕阳下 阅读(1400) 评论(0) 推荐(0) 编辑