Swift

Swift 基本学习

2018-01-24  本文已影响0人  江河_ios

这段时间一直在学习swift,学了一些东西, 给大家介绍一下学习的网页: 网页地址

        var  swiftStr = "斯威夫特"

        print(swiftStr)

        let str = "天气好冷"

        print(str)

        print("尝试多次违法评估了办公费吧");

        let width="100" ;

        print(width)

        let a = 1+1;

        let b = 8

        let c = a + b;

        let d = 2+3

        print(a,b,c,d )

        for count in 0...100 {

//            print(count)

            print("\(count) ", terminator: "")

        }

        print()

//        let theInput = readLine()

        var dij=9;

        print(dij);

        let count = 100; print(count);

        let name = "张三风"; print(name);

        let _name = "李四"; print(_name);

        let Name = "王子七" ; print(Name);

        let name1 = "点击方ID"

        print(name1)

    //

        let counts = 1 + 2

        print(counts)

        let bool = true

        print(bool)

        let Bools = true ; print(Bools)

        let floatCount = 2.73647 ; print(floatCount)

        print("可以直接打印")

//        public func print("万达", separator: String = default , terminator: String = default)

        for i in 0...100 {

            print(i)

        }

上一篇 下一篇

猜你喜欢

热点阅读