V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  ysc3839  ›  全部回复第 513 页 / 共 616 页
回复总数  12320
1 ... 509  510  511  512  513  514  515  516  517  518 ... 616  
❮ ❯
2019 年 2 月 23 日
回复了 Trumeet 创建的主题 › 问与答 › 9102 年,还有个人电脑用 Win7 吗
我在低配置的电脑上使用虚拟机的时候会使用 Win7 32bit 系统。
2019 年 2 月 22 日
回复了 zxq2233 创建的主题 › 问与答 › 浏览器如何在后台播放视频?
我自己为避免麻烦是在虚拟机里面播放的。鼠标从边界移出去,然后最小化虚拟机窗口也不会停止播放。VPS 应该差不多吧?
2019 年 2 月 22 日
回复了 shenxgan 创建的主题 › 问与答 › 请教一个 curl 返回值的问题,返回值太大
@shenxgan 先用 WIFEXITED 判断是否是正常退出,是的话用 WEXITSTATUS 获取返回值。
Python 有内置这两个函数 https://docs.python.org/2/library/os.html#os.WIFEXITED
2019 年 2 月 22 日
回复了 shenxgan 创建的主题 › 问与答 › 请教一个 curl 返回值的问题,返回值太大
先查 Python 文档 https://docs.python.org/2/library/commands.html#commands.getstatusoutput
有写 The exit status for the command can be interpreted according to the rules for the C function wait().

再查 Linux man https://linux.die.net/man/2/wait
If status is not NULL, wait() and waitpid() store status information in the int to which it points. This integer can be inspected with the following macros (which take the integer itself as an argument, not a pointer to it, as is done in wait() and waitpid()!):

下面有写
WEXITSTATUS(status)
returns the exit status of the child. This consists of the least significant 8 bits of the status argument that the child specified in a call to exit(3) or _exit(2) or as the argument for a return statement in main(). This macro should only be employed if WIFEXITED returned true.
JavaScript 是配合网页使用的时候回调才多吧? Python 程序的架构一般是从头执行到尾结束的。而网页中 JavaScript 不是这样,是根据事件来执行的,所以需要回调。
2019 年 2 月 21 日
回复了 wangxiaoaer 创建的主题 › Android › 纠结 Android 的权限到底有没有意义?
涉及到操作系统的话这就不仅仅是 Android 的问题了,所有不开源的系统都有可能偷偷收集你的信息。
如果有这种等级的要求的话那就使用开源的系统吧,Android 方面比较有名的是 LineageOS。
2019 年 2 月 21 日
回复了 Alpacino 创建的主题 › 问与答 › Python 中 x*0.5 和 x/2 返回的精度为什么不一样?
Chrome 保存的密码并没有引入外部密钥来加密,也就是说要不然没加密,要不然密钥存在本地。
2019 年 2 月 20 日
回复了 thinkycx 创建的主题 › 程序员 › 如何获得 github 公开仓库的 commit 提醒?
1. 试试直接用 int
2. 需要代码才知道具体该怎么办
2019 年 2 月 20 日
回复了 rebeccaMyKid 创建的主题 › 问与答 › 神了, apple id 网页 ubuntu chrome 不开,改 UA 就可以
清除 Cookies 试试?
2019 年 2 月 20 日
回复了 iuhiyuh 创建的主题 › 硬件 › 双系统的引导有没有终极好用的解决方案?
出了什么问题呢?
2019 年 2 月 20 日
回复了 pulelt 创建的主题 › 问与答 › 异地开票被锁了!有什么办法变异地 IP?
@ysc3839 补充一下,我所在地和手机归属地在同一个省。联通和电信的归属地相同。
2019 年 2 月 19 日
回复了 pulelt 创建的主题 › 问与答 › 异地开票被锁了!有什么办法变异地 IP?
@explore365
@namesc
我用自己的手机试了下,联通的 IP 地址是我现在的所在地,电信的 IP 地址只能查到省份。
@0myun 不能。而且印象中购汇需要填写购汇原因的吧?自动购汇会填写什么?
2019 年 2 月 19 日
回复了 wleexi 创建的主题 › 程序员 › 代码 if 嵌套过多,怎么优化比较好
@fuxiuyin 可以改成 do {} while (0);
这种写法在 C 语言里面挺常见的吧?算是把 while 当 goto 用。
2019 年 2 月 19 日
回复了 pk000 创建的主题 › Android › 授予存储权限能否保证应用数据隔离?
@pk000 是的。
@TomVista 可以。
1 ... 509  510  511  512  513  514  515  516  517  518 ... 616  
❮ ❯
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2512 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 88ms · UTC 11:04 · PVG 19:04 · LAX 04:04 · JFK 07:04
♥ Do have faith in what you're doing.