V2EX FreeBTC123
 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.
```
雇人做个小游戏, 一旦火爆了, 流量杠杠的
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     Solana     1121 人在线   最高记录 6679       Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 16ms UTC 23:16 PVG 07:16 LAX 16:16 JFK 19:16
Do have faith in what you're doing.
ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86