Group chat from anywhere using the web, IM, email or your phone.
python-cn
jyf1987@... sent an instant message
兴趣不同 正常
kulasama@... sent an instant message
比赛地点在哪?
机械唯物主义 sent an instant message
上海.
kulasama@... sent an instant message
那就去不了呢...
kulasama@... sent an instant message
python主力还是帝都比较多吧
机械唯物主义 sent an instant message
晕...
机械唯物主义 sent an instant message
坐标不对真的就没有办法了呢...
机械唯物主义 sent an instant message
对的...
机械唯物主义 sent an instant message
其实大家都默默地用..
havelove@... sent an instant message
PY有没有这样的函数 "7".split(mod=3) == [ 3, 3, 1 ] , 比如转账时有最大限额300,700需要自动分成几批不大于300得数额转
Zoom.Quiet sent an instant message
map()
havelove@... sent an instant message
map 不好用啊,还是循环搞定吧
机械唯物主义 sent an instant message
恩, 循环好用.
扑克 sent an instant message
>>> a=700;b=300
>>> [b] * (a//b) + [a%b]
[300, 300, 100]
Zoom.Quiet sent an instant message
;-) loop 直观
havelove@... sent an instant message
这个比较简洁 :-)
扑克 sent an instant message
有bug, 整除的情况不行
扑克 sent an instant message
>>> a=700;b=300
>>> arr=[b]*(a//b)
>>> if a%b: arr.append(a%b)
...
>>> arr
[300, 300, 100]
havelove@... sent an instant message
remove(0) 就行了
扑克 sent an instant message
guest2191972 posted from a guest
怎么加入该群?
机械唯物主义 sent an instant message
什么群?
机械唯物主义 sent an instant message
直接聊就可以啦.
机械唯物主义 sent an instant message
这个服务是host在 chatterous.com 的.
guest2191972 posted from a guest
这个不是gmail?
机械唯物主义 sent an instant message
可以连接到gtalk上面
guest2191972 posted from a guest
gtalk名字是什么呢?
Kun Wang sent an instant message
你的gmail名
guest2191972 posted from a guest
好把,我懂你的意思了
ishmael sent an instant message
在chatterous.com上注册一下,把gmail登记了,就可以显示用户名了⋯
ishmael sent an instant message
其实所有的聊天记录都是在chatterous上公开的⋯⋯
机械唯物主义 sent an instant message
对的.
havelove@... sent an instant message
怎么把 一个 socket file 当成 os.popen2 的 stdin ?
havelove@... sent an instant message
用 subprocess.Popen 可以,不过subprocess 不能像 os.system 或者 os.popen 那样执行很复杂的带管道的bash命令..
机械唯物主义 sent an instant message
socket.Socket不知道可以获取文件号不, 如果可以的话, 那么就可以根据文件号当作文件来打开的吧.
havelove@... sent an instant message
可以的, os.popen2 也可以获得子进程的stdin 和 stdout 不过这个东西没有 subscprocess 的 communicate,直接 write 和 read 会死锁
Able posted from the web
@help
Able posted from the web
/hlep
Able posted from the web
/help
jfreebird@gmail.com sent an instant message
什么情况
机械唯物主义 sent an instant message
啥啥?
jfreebird@gmail.com sent an instant message
新买了个MAC PRO 很爽的说。
机械唯物主义 sent an instant message
对的.
aleiphoenix sent an instant message
+1
doylecnn@... sent an instant message
羡慕.
机械唯物主义 sent an instant message
Hi, 有没有兴趣加入pythonvsruby的揭幕战活动?
机械唯物主义 sent an instant message
具体信息: http://pythonvsruby.org/
liksen posted from the web
haha http://www.loldor.com/contents/645. Strange wilderness is so underrated
机械唯物主义 sent an instant message
??
jyf1987@... sent an instant message
.h
Don't miss the conversation - get group messages sent to your IM or Email!
 
 
Chatting as guest2369384. Change name
admins
members
Loading members...
guests
Loading guests...