技术池(jishuchi.com) 本次搜索耗时 4.962 秒,为您找到 856 个相关结果.
  • 检查某个元组项目是否存在

    865 2020-12-15 《Python 教程》
    检查某个元组项目是否存在 检查某个元组项目是否存在 thistuple = ( "apple" , "banana" , "cherry" ) if "apple" in thistuple : print ( "Yes, 'apple' is in the fruits tuple" )
  • 不同类型的无序列表

    858 2020-12-10 《HTML 教程》
    不同类型的无序列表 不同类型的无序列表 <html> <body>   <h4> Disc 项目符号列表: </h4> <ul type = "disc" > <li> 苹果 </li> <li> 香蕉 </li> <li> 柠檬 </li> <li> 桔子 </li> </ul>   <h4> Cir...
  • 检查项目是否存在

    855 2020-12-15 《Python 教程》
    检查项目是否存在 检查项目是否存在 thisset = { "apple" , "banana" , "cherry" }   print ( "banana" in thisset )
  • 向字典添加一个项目

    828 2020-12-15 《Python 教程》
    向字典添加一个项目 向字典添加一个项目 thisdict = { "brand" : "Porsche" , "model" : "911" , "year" : 1963 } thisdict [ "color" ] = "red" print ( thisdict )
  • 更改字典中某个具体项目的值

    812 2020-12-15 《Python 教程》
    更改字典中某个具体项目的值 更改字典中某个具体项目的值 thisdict = { "brand" : "Porsche" , "model" : "911" , "year" : 1963 } thisdict [ "year" ] = 2019   print ( thisdict )...
  • 访问字典中的项目

    795 2020-12-15 《Python 教程》
    访问字典中的项目 访问字典中的项目 thisdict = { "brand" : "Porsche" , "model" : "911" , "year" : 1963 } x = thisdict [ "model" ] print ( x )