You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Spyder_python/main.py

37 lines
2.4 KiB

# from controller.SpyderController import SpyderController
from controller.UIController import UIController
from entity.BilibiliVideo import BilibiliVideo
from test.SpyderController_test import TestSpyderController
# spyderController = SpyderController()
uiController = UIController()
if __name__ == '__main__':
# print("this is main.py!")
UI = UIController()
test_cases = [
BilibiliVideo("BV1a4411C7i2", "视频标题1", "https://www.bilibili.com/video/BV1a4411C7i2", 1648927200, 1,
100000, 5000, 2000, 3000, 1000, 500, "up123456", "UP主A", 1000000),
BilibiliVideo("BV1F5411S8h3", "视频标题2", "https://www.bilibili.com/video/BV1F5411S8h3", 1648830800, 2,
80000, 4000, 1500, 2000, 800, 400, "up234567", "UP主B", 800000),
BilibiliVideo("BV1bW411d9c4", "视频标题3", "https://www.bilibili.com/video/BV1bW411d9c4", 1648734400, 3,
60000, 3000, 1000, 1500, 600, 300, "up345678", "UP主C", 600000),
BilibiliVideo("BV1qy411z5k5", "视频标题4", "https://www.bilibili.com/video/BV1qy411z5k5", 1648638000, 4,
40000, 2000, 800, 1000, 400, 200, "up456789", "UP主D", 400000),
BilibiliVideo("BV1R4411J0a6", "视频标题5", "https://www.bilibili.com/video/BV1R4411J0a6", 1648541600, 5,
20000, 1000, 500, 700, 200, 100, "up567890", "UP主E", 200000),
BilibiliVideo("BV1gW411H8d7", "视频标题6", "https://www.bilibili.com/video/BV1gW411H8d7", 1648445200, 6,
10000, 500, 300, 400, 100, 50, "up678901", "UP主F", 100000),
BilibiliVideo("BV1py411t6v8", "视频标题7", "https://www.bilibili.com/video/BV1py411t6v8", 1648348800, 7,
5000, 300, 200, 300, 50, 30, "up789012", "UP主G", 50000),
BilibiliVideo("BV1Qy411S3x9", "视频标题8", "https://www.bilibili.com/video/BV1Qy411S3x9", 1648252400, 8,
2000, 100, 100, 200, 20, 10, "up890123", "UP主H", 20000),
BilibiliVideo("BV1a4411C4y0", "视频标题9", "https://www.bilibili.com/video/BV1a4411C4y0", 1648156000, 9,
1000, 50, 50, 100, 10, 5, "up901234", "UP主I", 10000),
BilibiliVideo("BV1F5411C2r1", "视频标题10", "https://www.bilibili.com/video/BV1F5411C2r1", 1648059600,
10, 500, 30, 20, 50, 5, 3, "up012345", "UP主J", 5000)
]
UI.scRuslt_data = test_cases
UI.main()