python字符串连接也可以使用print时用到的方法

上一篇 / 下一篇  2016-09-22 14:55:22 / 个人分类:selenium

def test_function(str):
result1 = "wo%sni" %str
#大多数时候result1==result2,但有时候,间歇性的加号连接找不到元素
result2 = "wo"+str+"ni"
result3 = "wo%sni" %"ai"

test_function("ai")

TAG: Python python 字符串连接

 

评分:0

我来说两句

我的栏目

日历

« 2024-04-14  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 22061
  • 日志数: 8
  • 建立时间: 2016-09-09
  • 更新时间: 2016-10-08

RSS订阅

Open Toolbar