zoukankan      html  css  js  c++  java
  • Day3 String using Rules

    //                                  **Day3

    //                                  **for number in 1...10    

     

    //let closedRangeNumber = ["t","w","w"]

    //for i in 0..<closedRangeNumber.count

    //{

    //       print(closedRangeNumber[i])

    //}

    //

    //for index in 1...10

    //{

    //    print(index)

    //}

    //

    //for indexNumber in 1..<10

    //{

    //    for j in 1...10

    //    {

    //        j

    //    }

    //}

    //

    //let isChange = true

    //let aValue = 1

    //

    //if ((aValue != 1) || (isChange == false))

    //{

    //    print("no")

    //}else {

    //    print("yes")

    //}

    //

    //

    //if aValue==1 && isChange == true

    //{

    //    print("yes")

    //}else {

    //    print("no")

    //}

    //

    //let str = "can not change"

    //var str2 :String? = "can be changed"

    //

    //str2! += str

     

     

    //var str :String? = "HelloWorld"

    //for c in firststr

    //{

    //    print(ca)

    //}

    //

    //var ch : Character = "!"

    //str!.append(ch)

    //

    //str!.lengthOfBytesUsingEncoding(NSUTF8StringEncoding)

    //

    //print(str)

    //

    //

    //var newString = "hello"

    //let length = newString.characters.count

    //

    //let strValue = "你好 小平爷爷"

    //

    //let length1 = strValue.characters.count

    //

    //strValue.lengthOfBytesUsingEncoding(NSUTF8StringEncoding)

     

    //let testStr = ["twwString","tww2","tww3","tww5","tww6"]

    //for nameString in testStr

    //{

    //

    //    if nameString.hasPrefix("twwS")

    //    {

    //        print("yes")

    //    }

    //    if nameString.hasSuffix("6")

    //    {

    //        print("yes it has number 6")

    //    }

    //    

    //}

  • 相关阅读:
    雷少东_百度百科
    180China丨the Agency for Brand Engagement and Experience
    建立可信连接
    【行业干货】2013中国零售商排名
    30万左右买什么车好?_百度知道
    极速入职-拉勾网-专注互联网职业机会
    python
    关于幂律分布的一个笔记_哈克_新浪博客
    幂律分布_百度百科
    使用firefox直接 打开pdf文件可以破解禁止打印的功能
  • 原文地址:https://www.cnblogs.com/tony0571/p/5348500.html
Copyright © 2011-2022 走看看