<?php//今天$today=date(‘Y-m-d‘);//本月第一天$this_first_day=strtotime(date(‘Y-m-01‘,strtotime($today)));//上个月第一天$last_first_day=date(‘Y-m-01‘,strtotime(date(‘Y-m-01‘,strtotime($today)).‘-1month‘));
分类:
Web程序 时间:
2017-11-15 23:48:04
阅读次数:
296
先上效果图 其实,当时刚买 htc G8 的时候(那时北京的房价还是6千一平),安卓2.1 ,2.3 的时候就已经有安卓方面的开发的兴趣,但后来就没有弄过。。。 today 突然想起来,手机上连个游戏也没有,就打算开发一个。 在网上找了一些,看明白了其中的原理以后,就写了一个,图片素材来源于网络。 ...
分类:
移动开发 时间:
2017-11-10 23:16:07
阅读次数:
266
time模块: print(time.time())#获取当前时间戳,从UNIX元年开始过了多少秒 today_time = 2759086503860#获取当前时间戳 time_tuple = time.gmtime(today_time)#把时间戳转成时间元组 print(time.mktime ...
分类:
其他好文 时间:
2017-11-10 23:15:40
阅读次数:
177
http://ningning.today/2017/01/25/python/simple-python-metaclass/ https://stackoverflow.com/questions/25221072/how-to-write-a-python-abc-with-a-concret ...
分类:
编程语言 时间:
2017-11-10 16:59:07
阅读次数:
174
基本类型: 基本类型自然不用说了,它的值就是一个数字,一个字符或一个布尔值。 引用类型: 是一个对象类型,值是什么呢?它的值是指向内存空间的引用,就是地址,所指向的内存中保存着变量所表示的一个值或一组值。 举例说明: int a; a=250; //声明变量a的同时,系统给a分配了空间。 引用类型就 ...
分类:
编程语言 时间:
2017-11-10 13:47:59
阅读次数:
253
题目:I wish yesterday is tomorrow, then today is Friday. What is the actual date today? 思路:1.我希望昨天是明天,也就是说 假设的昨天 是 实际的明天 : yesterday=tomorrow 2.实际的明天 就是 ...
分类:
其他好文 时间:
2017-11-09 19:44:37
阅读次数:
269
today_report_path = os.paht.join(report_path, today) if not os.path.isdir(today_report_path): os.mkdir(today_report_path)在这行代码中报错,但单独执行该文件又没问题查了下应该是os ...
Java时间格式转换大全 import java.text.*; import java.util.Calendar; public class VeDate { /** * 获取现在时间 * * @return 返回时间类型 yyyy-MM-dd HH:mm:ss */ public static ...
分类:
编程语言 时间:
2017-11-01 15:06:08
阅读次数:
257
Html5 finally solves an age old problem of being able to upload files while also showing the upload progress. Today most websites use Flash Player to ...
分类:
Web程序 时间:
2017-10-31 19:55:40
阅读次数:
356
好记性不如烂笔头。 I encountered the same ImportError today while trying to use pip. Somehow the setuptools package had been deleted in my Python environment. ...
分类:
其他好文 时间:
2017-10-30 15:56:25
阅读次数:
211