From d8b34188b36106f03d57528c6d17efcde200a868 Mon Sep 17 00:00:00 2001 From: ashen-zhao Date: Thu, 27 Sep 2018 15:18:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BD=BF=E7=94=A8=E6=89=80?= =?UTF-8?q?=E6=9C=89=E5=9E=83=E5=9C=BE=E7=B1=BB=E7=9A=84=E6=80=BB=E7=B1=BB?= =?UTF-8?q?=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SwiftFiles/AAAAAAAAAAAAA_EnterVC.swift | 46 +++++++++++++++ SwiftFiles/AzerVfnjVCtler.swift | 73 ++++++++++++++++++++++++ SwiftFiles/CghcceRabxcvVCtler.swift | 68 ++++++++++++++++++++++ SwiftFiles/HnkhWvfbVCtler.swift | 59 +++++++++++++++++++ SwiftFiles/LupyIfwxVCtler.swift | 73 ++++++++++++++++++++++++ SwiftFiles/PnffIdqbVController.swift | 51 ----------------- SwiftFiles/QhvzFbqoVController.swift | 58 ------------------- SwiftFiles/RdipRvybVCtler.swift | 55 ++++++++++++++++++ SwiftFiles/XapxoWamgwVCtler.swift | 46 +++++++++++++++ SwiftFiles/YkkhbrFpzjqeVController.swift | 57 ------------------ SwiftFiles/ZnwftoQofkrhVCtler.swift | 60 +++++++++++++++++++ toSwift.py | 30 +++++++--- 12 files changed, 503 insertions(+), 173 deletions(-) create mode 100644 SwiftFiles/AAAAAAAAAAAAA_EnterVC.swift create mode 100644 SwiftFiles/AzerVfnjVCtler.swift create mode 100644 SwiftFiles/CghcceRabxcvVCtler.swift create mode 100644 SwiftFiles/HnkhWvfbVCtler.swift create mode 100644 SwiftFiles/LupyIfwxVCtler.swift delete mode 100644 SwiftFiles/PnffIdqbVController.swift delete mode 100644 SwiftFiles/QhvzFbqoVController.swift create mode 100644 SwiftFiles/RdipRvybVCtler.swift create mode 100644 SwiftFiles/XapxoWamgwVCtler.swift delete mode 100644 SwiftFiles/YkkhbrFpzjqeVController.swift create mode 100644 SwiftFiles/ZnwftoQofkrhVCtler.swift diff --git a/SwiftFiles/AAAAAAAAAAAAA_EnterVC.swift b/SwiftFiles/AAAAAAAAAAAAA_EnterVC.swift new file mode 100644 index 0000000..fb21069 --- /dev/null +++ b/SwiftFiles/AAAAAAAAAAAAA_EnterVC.swift @@ -0,0 +1,46 @@ +// +// AAAAAAAAAAAAA_EnterVC.swift +// BLQbank + +// Created by Ashen on 18/09/27. +// Copyright © 2018年 BeiLian. All rights reserved. +// + +import UIKit + +class AAAAAAAAAAAAA_EnterVC: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + + + let LupyIfwx_vc = LupyIfwxVCtler() + + LupyIfwx_vc.LupyIfwx_Method() + + let ZnwftoQofkrh_vc = ZnwftoQofkrhVCtler() + + ZnwftoQofkrh_vc.HnkhWvfb_Method() + + let AzerVfnj_vc = AzerVfnjVCtler() + + AzerVfnj_vc.RdipRvyb_Method() + + let RdipRvyb_vc = RdipRvybVCtler() + + RdipRvyb_vc.LupyIfwx_Method() + + let XapxoWamgw_vc = XapxoWamgwVCtler() + + XapxoWamgw_vc.AzerVfnj_Method() + + let CghcceRabxcv_vc = CghcceRabxcvVCtler() + + CghcceRabxcv_vc.ZnwftoQofkrh_Method() + + let HnkhWvfb_vc = HnkhWvfbVCtler() + + HnkhWvfb_vc.LupyIfwx_Method() + } + +} \ No newline at end of file diff --git a/SwiftFiles/AzerVfnjVCtler.swift b/SwiftFiles/AzerVfnjVCtler.swift new file mode 100644 index 0000000..ece70d5 --- /dev/null +++ b/SwiftFiles/AzerVfnjVCtler.swift @@ -0,0 +1,73 @@ +// +// AzerVfnjVCtler.swift +// BLQbank + +// Created by Ashen on 18/09/27. +// Copyright © 2018年 BeiLian. All rights reserved. +// + +import UIKit + +class AzerVfnjVCtler: UIViewController { + + public var LupyIfwx:UITableView! + public var HnkhWvfb:UIColor! + public var ZnwftoQofkrh:UIColor! + public var RdipRvyb:UIScrollView! + + + override func viewDidLoad() { + super.viewDidLoad() + } + + public func RdipRvyb_Method() { + + var realArr = Array() + realArr.append("RdipRvyb") + realArr.append("ZnwftoQofkrh") + realArr.append("LupyIfwx") + realArr.append("HnkhWvfb") + realArr.append("CghcceRabxcv") + realArr.append("ZnwftoQofkrh") + realArr.append("LupyIfwx") + realArr.append("HnkhWvfb") + + } + + public func ZnwftoQofkrh_Method() { + + var realArr = Array() + realArr.append("CghcceRabxcv") + realArr.append("AzerVfnj") + + } + + public func AzerVfnj_Method() { + + var realArr = Array() + realArr.append("CghcceRabxcv") + realArr.append("ZnwftoQofkrh") + realArr.append("XapxoWamgw") + realArr.append("ZnwftoQofkrh") + realArr.append("HnkhWvfb") + realArr.append("ZnwftoQofkrh") + realArr.append("LupyIfwx") + + } + + public func HnkhWvfb_Method() { + + var realArr = Array() + realArr.append("XapxoWamgw") + realArr.append("CghcceRabxcv") + realArr.append("CghcceRabxcv") + realArr.append("ZnwftoQofkrh") + realArr.append("LupyIfwx") + realArr.append("CghcceRabxcv") + realArr.append("AzerVfnj") + realArr.append("XapxoWamgw") + realArr.append("CghcceRabxcv") + + } + +} \ No newline at end of file diff --git a/SwiftFiles/CghcceRabxcvVCtler.swift b/SwiftFiles/CghcceRabxcvVCtler.swift new file mode 100644 index 0000000..7ca5614 --- /dev/null +++ b/SwiftFiles/CghcceRabxcvVCtler.swift @@ -0,0 +1,68 @@ +// +// CghcceRabxcvVCtler.swift +// BLQbank + +// Created by Ashen on 18/09/27. +// Copyright © 2018年 BeiLian. All rights reserved. +// + +import UIKit + +class CghcceRabxcvVCtler: UIViewController { + + public var LupyIfwx:UIView! + public var ZnwftoQofkrh:UILabel! + public var RdipRvyb:UIScrollView! + public var AzerVfnj:UIButton! + public var XapxoWamgw:UIView! + public var CghcceRabxcv:UISlider! + public var HnkhWvfb:UIView! + + + override func viewDidLoad() { + super.viewDidLoad() + } + + public func ZnwftoQofkrh_Method() { + + var realArr = Array() + realArr.append("XapxoWamgw") + realArr.append("CghcceRabxcv") + + } + + public func AzerVfnj_Method() { + + var realArr = Array() + realArr.append("RdipRvyb") + realArr.append("XapxoWamgw") + realArr.append("XapxoWamgw") + realArr.append("XapxoWamgw") + realArr.append("LupyIfwx") + realArr.append("ZnwftoQofkrh") + + } + + public func XapxoWamgw_Method() { + + var realArr = Array() + realArr.append("CghcceRabxcv") + realArr.append("CghcceRabxcv") + realArr.append("ZnwftoQofkrh") + realArr.append("RdipRvyb") + realArr.append("LupyIfwx") + realArr.append("ZnwftoQofkrh") + realArr.append("HnkhWvfb") + realArr.append("LupyIfwx") + + } + + public func CghcceRabxcv_Method() { + + var realArr = Array() + realArr.append("CghcceRabxcv") + realArr.append("LupyIfwx") + + } + +} \ No newline at end of file diff --git a/SwiftFiles/HnkhWvfbVCtler.swift b/SwiftFiles/HnkhWvfbVCtler.swift new file mode 100644 index 0000000..4f90bc3 --- /dev/null +++ b/SwiftFiles/HnkhWvfbVCtler.swift @@ -0,0 +1,59 @@ +// +// HnkhWvfbVCtler.swift +// BLQbank + +// Created by Ashen on 18/09/27. +// Copyright © 2018年 BeiLian. All rights reserved. +// + +import UIKit + +class HnkhWvfbVCtler: UIViewController { + + public var LupyIfwx:UILabel! + public var ZnwftoQofkrh:UIView! + public var HnkhWvfb:UIScrollView! + public var XapxoWamgw:UISlider! + public var CghcceRabxcv:UIScrollView! + + + override func viewDidLoad() { + super.viewDidLoad() + } + + public func LupyIfwx_Method() { + + var realArr = Array() + realArr.append("XapxoWamgw") + realArr.append("ZnwftoQofkrh") + realArr.append("CghcceRabxcv") + + } + + public func HnkhWvfb_Method() { + + var realArr = Array() + realArr.append("CghcceRabxcv") + realArr.append("RdipRvyb") + realArr.append("RdipRvyb") + realArr.append("HnkhWvfb") + realArr.append("CghcceRabxcv") + realArr.append("LupyIfwx") + realArr.append("RdipRvyb") + realArr.append("ZnwftoQofkrh") + realArr.append("CghcceRabxcv") + + } + + public func CghcceRabxcv_Method() { + + var realArr = Array() + realArr.append("ZnwftoQofkrh") + realArr.append("ZnwftoQofkrh") + realArr.append("RdipRvyb") + realArr.append("HnkhWvfb") + realArr.append("CghcceRabxcv") + + } + +} \ No newline at end of file diff --git a/SwiftFiles/LupyIfwxVCtler.swift b/SwiftFiles/LupyIfwxVCtler.swift new file mode 100644 index 0000000..b56124e --- /dev/null +++ b/SwiftFiles/LupyIfwxVCtler.swift @@ -0,0 +1,73 @@ +// +// LupyIfwxVCtler.swift +// BLQbank + +// Created by Ashen on 18/09/27. +// Copyright © 2018年 BeiLian. All rights reserved. +// + +import UIKit + +class LupyIfwxVCtler: UIViewController { + + public var LupyIfwx:UIScrollView! + public var ZnwftoQofkrh:UIColor! + public var AzerVfnj:UISlider! + public var XapxoWamgw:UIView! + public var CghcceRabxcv:UIView! + + + override func viewDidLoad() { + super.viewDidLoad() + } + + public func LupyIfwx_Method() { + + var realArr = Array() + realArr.append("XapxoWamgw") + realArr.append("RdipRvyb") + realArr.append("LupyIfwx") + realArr.append("RdipRvyb") + realArr.append("HnkhWvfb") + realArr.append("CghcceRabxcv") + realArr.append("ZnwftoQofkrh") + + } + + public func AzerVfnj_Method() { + + var realArr = Array() + realArr.append("XapxoWamgw") + realArr.append("HnkhWvfb") + + } + + public func RdipRvyb_Method() { + + var realArr = Array() + realArr.append("AzerVfnj") + realArr.append("XapxoWamgw") + realArr.append("XapxoWamgw") + realArr.append("LupyIfwx") + realArr.append("XapxoWamgw") + realArr.append("ZnwftoQofkrh") + realArr.append("LupyIfwx") + + } + + public func CghcceRabxcv_Method() { + + var realArr = Array() + realArr.append("ZnwftoQofkrh") + realArr.append("RdipRvyb") + realArr.append("XapxoWamgw") + realArr.append("XapxoWamgw") + realArr.append("ZnwftoQofkrh") + realArr.append("XapxoWamgw") + realArr.append("AzerVfnj") + realArr.append("HnkhWvfb") + realArr.append("HnkhWvfb") + + } + +} \ No newline at end of file diff --git a/SwiftFiles/PnffIdqbVController.swift b/SwiftFiles/PnffIdqbVController.swift deleted file mode 100644 index 3c7dc2e..0000000 --- a/SwiftFiles/PnffIdqbVController.swift +++ /dev/null @@ -1,51 +0,0 @@ -// -// PnffIdqbVController.swift -// Orange - -// Created by Ashen on 18/06/06. -// Copyright © 2018年 BeiLian. All rights reserved. -// - -import UIKit - -class PnffIdqbVController: UIViewController { - - public var PnffIdqb:UIScrollView! - public var YkkhbrFpzjqe:UILabel! - public var QhvzFbqo:UIColor! - - - override func viewDidLoad() { - super.viewDidLoad() - } - - public func PnffIdqbTOVC() { - - var realArr = Array() - realArr.append("PnffIdqb") - realArr.append("YkkhbrFpzjqe") - realArr.append("PnffIdqb") - realArr.append("YkkhbrFpzjqe") - - } - - public func YkkhbrFpzjqeTOVC() { - - var realArr = Array() - realArr.append("YkkhbrFpzjqe") - realArr.append("PnffIdqb") - realArr.append("YkkhbrFpzjqe") - realArr.append("YkkhbrFpzjqe") - - } - - public func QhvzFbqoTOVC() { - - var realArr = Array() - realArr.append("QhvzFbqo") - realArr.append("QhvzFbqo") - realArr.append("PnffIdqb") - - } - -} \ No newline at end of file diff --git a/SwiftFiles/QhvzFbqoVController.swift b/SwiftFiles/QhvzFbqoVController.swift deleted file mode 100644 index 78bd365..0000000 --- a/SwiftFiles/QhvzFbqoVController.swift +++ /dev/null @@ -1,58 +0,0 @@ -// -// QhvzFbqoVController.swift -// Orange - -// Created by Ashen on 18/06/06. -// Copyright © 2018年 BeiLian. All rights reserved. -// - -import UIKit - -class QhvzFbqoVController: UIViewController { - - public var YkkhbrFpzjqe:UISlider! - public var QhvzFbqo:UIButton! - - - override func viewDidLoad() { - super.viewDidLoad() - } - - public func PnffIdqbTOVC() { - - var realArr = Array() - realArr.append("QhvzFbqo") - realArr.append("PnffIdqb") - realArr.append("QhvzFbqo") - realArr.append("PnffIdqb") - realArr.append("PnffIdqb") - realArr.append("PnffIdqb") - realArr.append("YkkhbrFpzjqe") - realArr.append("PnffIdqb") - - } - - public func YkkhbrFpzjqeTOVC() { - - var realArr = Array() - realArr.append("YkkhbrFpzjqe") - realArr.append("YkkhbrFpzjqe") - realArr.append("QhvzFbqo") - realArr.append("QhvzFbqo") - - } - - public func QhvzFbqoTOVC() { - - var realArr = Array() - realArr.append("QhvzFbqo") - realArr.append("QhvzFbqo") - realArr.append("YkkhbrFpzjqe") - realArr.append("YkkhbrFpzjqe") - realArr.append("QhvzFbqo") - realArr.append("YkkhbrFpzjqe") - realArr.append("YkkhbrFpzjqe") - - } - -} \ No newline at end of file diff --git a/SwiftFiles/RdipRvybVCtler.swift b/SwiftFiles/RdipRvybVCtler.swift new file mode 100644 index 0000000..df2b87d --- /dev/null +++ b/SwiftFiles/RdipRvybVCtler.swift @@ -0,0 +1,55 @@ +// +// RdipRvybVCtler.swift +// BLQbank + +// Created by Ashen on 18/09/27. +// Copyright © 2018年 BeiLian. All rights reserved. +// + +import UIKit + +class RdipRvybVCtler: UIViewController { + + public var LupyIfwx:UITableView! + + + override func viewDidLoad() { + super.viewDidLoad() + } + + public func LupyIfwx_Method() { + + var realArr = Array() + realArr.append("RdipRvyb") + realArr.append("CghcceRabxcv") + realArr.append("LupyIfwx") + realArr.append("XapxoWamgw") + realArr.append("CghcceRabxcv") + + } + + public func RdipRvyb_Method() { + + var realArr = Array() + realArr.append("ZnwftoQofkrh") + realArr.append("RdipRvyb") + realArr.append("XapxoWamgw") + realArr.append("RdipRvyb") + realArr.append("CghcceRabxcv") + + } + + public func HnkhWvfb_Method() { + + var realArr = Array() + realArr.append("HnkhWvfb") + realArr.append("AzerVfnj") + realArr.append("LupyIfwx") + realArr.append("ZnwftoQofkrh") + realArr.append("XapxoWamgw") + realArr.append("XapxoWamgw") + realArr.append("ZnwftoQofkrh") + + } + +} \ No newline at end of file diff --git a/SwiftFiles/XapxoWamgwVCtler.swift b/SwiftFiles/XapxoWamgwVCtler.swift new file mode 100644 index 0000000..6271ed1 --- /dev/null +++ b/SwiftFiles/XapxoWamgwVCtler.swift @@ -0,0 +1,46 @@ +// +// XapxoWamgwVCtler.swift +// BLQbank + +// Created by Ashen on 18/09/27. +// Copyright © 2018年 BeiLian. All rights reserved. +// + +import UIKit + +class XapxoWamgwVCtler: UIViewController { + + public var LupyIfwx:UIScrollView! + public var ZnwftoQofkrh:UIButton! + public var RdipRvyb:UILabel! + public var XapxoWamgw:UITableView! + public var CghcceRabxcv:UITableView! + public var HnkhWvfb:UITextView! + + + override func viewDidLoad() { + super.viewDidLoad() + } + + public func AzerVfnj_Method() { + + var realArr = Array() + realArr.append("LupyIfwx") + realArr.append("CghcceRabxcv") + realArr.append("CghcceRabxcv") + realArr.append("HnkhWvfb") + realArr.append("HnkhWvfb") + realArr.append("HnkhWvfb") + + } + + public func HnkhWvfb_Method() { + + var realArr = Array() + realArr.append("LupyIfwx") + realArr.append("XapxoWamgw") + realArr.append("RdipRvyb") + + } + +} \ No newline at end of file diff --git a/SwiftFiles/YkkhbrFpzjqeVController.swift b/SwiftFiles/YkkhbrFpzjqeVController.swift deleted file mode 100644 index 3174572..0000000 --- a/SwiftFiles/YkkhbrFpzjqeVController.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// YkkhbrFpzjqeVController.swift -// Orange - -// Created by Ashen on 18/06/06. -// Copyright © 2018年 BeiLian. All rights reserved. -// - -import UIKit - -class YkkhbrFpzjqeVController: UIViewController { - - public var PnffIdqb:UILabel! - public var YkkhbrFpzjqe:UIColor! - public var QhvzFbqo:UIView! - - - override func viewDidLoad() { - super.viewDidLoad() - } - - public func PnffIdqbTOVC() { - - var realArr = Array() - realArr.append("PnffIdqb") - realArr.append("QhvzFbqo") - realArr.append("PnffIdqb") - realArr.append("QhvzFbqo") - realArr.append("PnffIdqb") - realArr.append("QhvzFbqo") - realArr.append("QhvzFbqo") - - } - - public func YkkhbrFpzjqeTOVC() { - - var realArr = Array() - realArr.append("QhvzFbqo") - realArr.append("QhvzFbqo") - realArr.append("QhvzFbqo") - - } - - public func QhvzFbqoTOVC() { - - var realArr = Array() - realArr.append("YkkhbrFpzjqe") - realArr.append("YkkhbrFpzjqe") - realArr.append("YkkhbrFpzjqe") - realArr.append("PnffIdqb") - realArr.append("PnffIdqb") - realArr.append("QhvzFbqo") - realArr.append("QhvzFbqo") - - } - -} \ No newline at end of file diff --git a/SwiftFiles/ZnwftoQofkrhVCtler.swift b/SwiftFiles/ZnwftoQofkrhVCtler.swift new file mode 100644 index 0000000..05c8784 --- /dev/null +++ b/SwiftFiles/ZnwftoQofkrhVCtler.swift @@ -0,0 +1,60 @@ +// +// ZnwftoQofkrhVCtler.swift +// BLQbank + +// Created by Ashen on 18/09/27. +// Copyright © 2018年 BeiLian. All rights reserved. +// + +import UIKit + +class ZnwftoQofkrhVCtler: UIViewController { + + public var HnkhWvfb:UISlider! + public var ZnwftoQofkrh:UIColor! + public var AzerVfnj:UITextView! + public var XapxoWamgw:UIButton! + + + override func viewDidLoad() { + super.viewDidLoad() + } + + public func HnkhWvfb_Method() { + + var realArr = Array() + realArr.append("XapxoWamgw") + realArr.append("XapxoWamgw") + realArr.append("HnkhWvfb") + realArr.append("RdipRvyb") + realArr.append("ZnwftoQofkrh") + realArr.append("ZnwftoQofkrh") + + } + + public func RdipRvyb_Method() { + + var realArr = Array() + realArr.append("RdipRvyb") + realArr.append("HnkhWvfb") + realArr.append("ZnwftoQofkrh") + realArr.append("XapxoWamgw") + realArr.append("HnkhWvfb") + + } + + public func XapxoWamgw_Method() { + + var realArr = Array() + realArr.append("XapxoWamgw") + realArr.append("RdipRvyb") + realArr.append("CghcceRabxcv") + realArr.append("XapxoWamgw") + realArr.append("HnkhWvfb") + realArr.append("AzerVfnj") + realArr.append("CghcceRabxcv") + realArr.append("HnkhWvfb") + + } + +} \ No newline at end of file diff --git a/toSwift.py b/toSwift.py index 6edf3cc..aabc9d0 100644 --- a/toSwift.py +++ b/toSwift.py @@ -14,7 +14,7 @@ def createSwift(fileNmae,propertyNumber,methodArray): file = open(full_path, 'w') - file.write('//\n// '+fileNmae+'.swift\n// Orange\n\n// Created by Ashen on 18/06/06.\n// Copyright © 2018年 BeiLian. All rights reserved.\n//\n\n') + file.write('//\n// '+fileNmae+'.swift\n// BLQbank\n\n// Created by Ashen on 18/09/27.\n// Copyright © 2018年 BeiLian. All rights reserved.\n//\n\n') file.write('import UIKit \n\n' + 'class '+fileNmae+': UIViewController {\n\n') @@ -37,7 +37,7 @@ def createSwift(fileNmae,propertyNumber,methodArray): for methodName in methodArray: - file.write(' public func '+methodName+'TOVC() {\n\n var realArr = Array()\n') + file.write(' public func '+methodName+'_Method() {\n\n var realArr = Array()\n') number = random.randint(3, 10) @@ -65,7 +65,7 @@ def createClassName(): array = [] # 设置生成多少个类 - classNumber = 3 + classNumber = 7 for i in range(classNumber): final=(random.choice(first)) @@ -86,14 +86,27 @@ def createClassName(): return array #属性类型 -classArray = ['UIColor','UILabel','UITableView','UISlider','UIScrollView','UIView','UIButton'] +classArray = ['UIColor','UILabel','UITableView','UISlider','UIScrollView','UIView','UIButton','UITextView'] array = createClassName() array = list(set(array)) -for name in array: +enterfileNmae = 'AAAAAAAAAAAAA_EnterVC' + +full_path = sys.path[0] + '/SwiftFiles/' + enterfileNmae + '.swift' + +file = open(full_path, 'w') + +file.write('//\n// '+enterfileNmae+'.swift\n// BLQbank\n\n// Created by Ashen on 18/09/27.\n// Copyright © 2018年 BeiLian. All rights reserved.\n//\n\n') + +file.write('import UIKit \n\n' + 'class '+enterfileNmae+': UIViewController {\n\n') + +file.write(' override func viewDidLoad() {\n super.viewDidLoad()\n ') + +for name in array: + file.write('\n\n let '+name+'_vc = '+name+'VCtler()') number = random.randint(3, 10) methodArray = [] @@ -103,6 +116,9 @@ def createClassName(): methodArray.append(random.choice(array)) methodArray = list(set(methodArray))#数组去重 - - createSwift(name+'VController',number,methodArray) + createSwift(name+'VCtler',number,methodArray) + file.write('\n\n '+name+'_vc.'+methodArray[0]+'_Method()') + +file.write('\n }\n\n') +file.write('}')