V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  terence4444  ›  全部回复第 286 页 / 共 318 页
回复总数  6354
1 ... 282  283  284  285  286  287  288  289  290  291 ... 318  
2016-01-28 22:22:07 +08:00
回复了 openbaby 创建的主题 问与答 你们,能打开必应吗?
上海电信无异常
2016-01-28 21:04:52 +08:00
回复了 MajestySolor 创建的主题 游戏 三国志 13 挺不错,津津有味玩了一下午~
我原来估计 390 还真猜中了… 不知道杉果有没有动作
这事房东应该担责吧
2016-01-27 16:03:13 +08:00
回复了 Tony1ee 创建的主题 路由器 路由器换代,求推荐
WNDR3700 无线模块好像有一个不一样,最高 600M 。 4300 是 750M 的 其它一样。 OPENWRT 对不同版本的支持不一样,具体去 http://wiki.openwrt.org/toh/start 查询
2016-01-27 15:09:22 +08:00
回复了 Tony1ee 创建的主题 路由器 路由器换代,求推荐
WNDR4300 / WNDR3700
2016-01-27 15:08:49 +08:00
回复了 ivmm 创建的主题 问与答 win7 32bit 的序列号,能用于 win10 64bit 的安装么?
@terence4444 找 64 位的 WIN7 装好升级 WIN10 ,以后重装 WIN10 [不] 再需要序列号
2016-01-27 15:08:31 +08:00
回复了 ivmm 创建的主题 问与答 win7 32bit 的序列号,能用于 win10 64bit 的安装么?
找 64 位的 WIN7 装好升级 WIN10 ,以后重装 WIN10 再需要序列号
2016-01-27 12:12:07 +08:00
回复了 rori 创建的主题 问与答 在内地推繁体中文纯粹的论坛有没有前途或者推广思路?
信息才是重点,文字只是载体。做论坛的话人气低也是意料之中的,针对文字本身的讨论本来就不会受到很多关注
我都是通过地址栏记忆打一两个字母进的
2016-01-26 19:18:32 +08:00
回复了 lukertty 创建的主题 Apple 外婆想买个 iPad ,去哪里买?
京东自营一般还是靠谱的
2016-01-26 18:20:06 +08:00
回复了 chuhemiao 创建的主题 程序员 朋友圈在刷马赛克照,有何感想啊,就这还得花钱看!
已禁用朋友圈 谁要看这些照片
@hitmanx 我找的结果好像和你贴的不一样,不过即使一样也没有很多相关信息把引导到 format 上去

7.1. string — Common string operations — …翻译此页
The string module contains a number ... Python ’ s built-in string classes support ... To output formatted strings use template strings or the % operator described in ...

python convert a string to an operator - Stack Overflow
最佳答案 Is it possible to convert a string to an operator in python? I would like to pass a condition to a function Ideally it would look like this: def foo(self, attribute ...详情
stackoverflow.com/.../5117112/python-convert-a-string-to-an-operator  ·  2011-02-25

9.9. operator — Standard operators as functions …翻译此页
This table shows how abstract operations correspond to operator symbols in the Python syntax and the functions in the ... String Formatting: s % obj: mod(s, obj ...

5. Built-in Types — Python 2.7.11 documentation 翻译此页
To output formatted strings use template strings or the % operator described in the String Formatting Operations section. ... String (converts any Python object using str

BitwiseOperators - Python Wiki 翻译此页
These are Python's bitwise operators. ... they treat it as if it were a string of bits, ... Python allows operator overloading, ...
https://wiki.python.org/moin/BitwiseOperators
Operators and String Formatting in Python - …翻译此页
Operators and String Formatting . Terms in This Chapter . Format directives; Hexdump; Key; Keyword; Literal; Modulus; Operator precedence; Boolean value; Class ...
www.informit.com/articles/article.aspx?p=28790

在第一个搜索结果中并没有 format 这样的用法,我都是打开然后直接搜索 % 符号找的,知道 % 和 format 是一样的话应该可以找到,但是不知道的话,我觉得并不是那么容易。
2016-01-26 15:32:53 +08:00
回复了 Zeo1022 创建的主题 macOS 闲~来说一说你们平时都用什么来看视频的?
VLC
@hitmanx 我用 "Python String Operator %" 找的…… 以为是一个 operator ,昨天在家用的 Bing
2016-01-25 23:31:38 +08:00
回复了 Tony1ee 创建的主题 问与答 大家的电视盒子都是怎么用的?
直接用电脑接电视了,因为离得相对较近,买根长点的 HDMI 搞定。离远一点的估计需要串流。
@ethego 谢谢提醒
这个是我自己跑定时任务抓东西用的, field 和 value 都是固定写死的几个字段的排列组合(抓到某个值就写上字段和值,没有抓到的就跳过不更新)
没有用户输入,应该没有关系吧…… 有用户输入的肯定会 encode 一下的。
@ethego 感谢,我在文档中看到这个写法和 format 写法等同的,我本来要写动态 SQL 用的……

sql_cause = "replace into tabls(%(fields)s) values(%(values)s) "
params = {'fields': 'f1,f2,f3', 'values': 'v1,v2,v3'}
sql_cause = sql_cause % params

用 format 应该可以等同为(还没测):
"replace into tabls({0}) values({1}) ".format('f1,f2,f3', 'v1,v2,v3')

Python 推荐用第二种吗?
@zk8802 感谢,连页面 tag 都打好了,太贴心 :)
1 ... 282  283  284  285  286  287  288  289  290  291 ... 318  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4493 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 98ms · UTC 10:04 · PVG 18:04 · LAX 03:04 · JFK 06:04
Developed with CodeLauncher
♥ Do have faith in what you're doing.