FreeBTC123 最近的时间轴更新
FreeBTC123

FreeBTC123

V2EX 第 52072 号会员,加入于 2013-12-17 15:57:17 +08:00
FreeBTC123 最近回复了
2016-11-29 15:09:27 +08:00
回复了 pppy 创建的主题 Python 获取下个周三的日期
```python
In [13]: def coming_weekday(num):
this_week = Week.thisweek()
return (this_week + (not this_week.day(num) > datetime.now().date())).day(num)
....:
```
2016-11-29 14:55:25 +08:00
回复了 pppy 创建的主题 Python 获取下个周三的日期
```python
In [1]: from datetime import datetime

In [2]: from isoweek import Week

In [3]: def coming_weekday(num):
...: this_week = Week.thisweek()
...: this_weekday = this_week.day(num)
...: return this_weekday if this_weekday > datetime.now().date() else (this_week + 1).day(num)
...:

In [4]: coming_weekday(2)
Out[4]: datetime.date(2016, 11, 30)

In [5]: # 0 is Monday
```
2016-11-29 14:30:16 +08:00
回复了 pppy 创建的主题 Python 获取下个周三的日期
囧, 搞成下周的周三了
2016-11-29 14:26:22 +08:00
回复了 pppy 创建的主题 Python 获取下个周三的日期
* 安装
```shell
pip install isoweek
```

* 使用
```python
In [1]: from isoweek import Week

In [2]: (Week.thisweek() + 1).wednesday()
Out[2]: datetime.date(2016, 12, 7)
```
2016-06-12 12:27:57 +08:00
回复了 cxz 创建的主题 Python 弱弱问一个 python 操作 sqlite 的问题
https://docs.python.org/2/library/sqlite3.html#sqlite3.Connection.execute

```
execute(sql[, parameters])
This is a nonstandard shortcut that creates an intermediate cursor object by calling the cursor method, then calls the cursor ’ s execute method with the parameters given.
```
2015-01-12 16:18:54 +08:00
回复了 k1990855 创建的主题 游戏 只有 1000 元成本,你该如何推广和运营一个游戏产品?
雇人做个小游戏, 一旦火爆了, 流量杠杠的
2015-01-05 14:35:56 +08:00
回复了 1989922yan 创建的主题 Python tornado 中,我这样的实现,是不是实现了 django 的 form??
forms不仅仅能拿数据, 还能校验数据的哦,tornado 想用的话, 推荐[WTForms](http://tt4it.com/resources/discuss/1599/)
Python 2.7.5 (default, Mar 9 2014, 22:15:05)
Type "copyright", "credits" or "license" for more information.

IPython 2.2.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]: timeit sum(xrange(1, 1000000001))
1 loops, best of 3: 9.26 s per loop

In [2]:
2014-07-11 09:22:06 +08:00
回复了 gangsta 创建的主题 设计 关于用视频做网页背景
@FreeBTC123 http://pamjs.com/pam/mov/ 视频加载慢也是一个很大的问题啊, 也得想办法解决一下
2014-07-11 09:19:59 +08:00
回复了 gangsta 创建的主题 设计 关于用视频做网页背景
自己写的, 非前端码农, 写的貌似有点烂, 有空还会继续加东西, 欢迎大家共同开发啊。。。 http://tt4it.com/resources/discuss/281/
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4406 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 01:05 · PVG 09:05 · LAX 18:05 · JFK 21:05
Developed with CodeLauncher
♥ Do have faith in what you're doing.