摘要: import NaturalLanguage var str = "abc!xde!zf" var n = 0 while let range = str.range(of: "!") { str.removeSubrange(range.lowerBound...range.upperBound) 阅读全文
posted @ 2022-07-27 04:02 速搞 阅读(18) 评论(0) 推荐(0)
摘要: inlinePresentationIntent = .softBreak inlinePresentationIntent = .softBreak //行距 .baselineOffset = 20 enum 样式 { case 重要, 风险, important } @State var 成长 阅读全文
posted @ 2022-07-25 19:13 速搞 阅读(35) 评论(0) 推荐(0)
摘要: let url = Bundle.main.url(forResource: "baidu_stopwords", withExtension: "csv")! // let result = try! DataFrame(contentsOfCSVFile: url,options: CSVRea 阅读全文
posted @ 2022-07-22 22:03 速搞 阅读(54) 评论(0) 推荐(0)
摘要: Button( action: { isPerformingTask = true api = apilist.filter(){$0 != api}.randomElement()! Task { await loadData() isPerformingTask = false } }, lab 阅读全文
posted @ 2022-07-22 00:19 速搞 阅读(35) 评论(0) 推荐(0)
摘要: from io import BytesIO import requests import pdfplumber import re import boto3 from boto3.dynamodb.conditions import Key, Attr import json def lambda 阅读全文
posted @ 2022-07-21 03:07 速搞 阅读(26) 评论(0) 推荐(0)
摘要: import SwiftUI struct TaskEntry2: Decodable,Identifiable,Hashable{ var id:Int var name: String } struct SwiftUIView3: View { @State var aaa = [String] 阅读全文
posted @ 2022-07-21 00:06 速搞 阅读(61) 评论(0) 推荐(0)
摘要: import SwiftUI import NaturalLanguage import CoreML import UIKit import CoreData struct wve: View { @State var aaa = [String]() @FetchRequest(entity: 阅读全文
posted @ 2022-07-20 17:05 速搞 阅读(76) 评论(0) 推荐(0)
摘要: //span[@title]/a[@onclick]/@href from lxml import etree id=[] time=[] z=[] g="" selector = etree.HTML(req.text) links = selector.xpath('//span[@title] 阅读全文
posted @ 2022-07-19 17:39 速搞 阅读(53) 评论(0) 推荐(0)
摘要: from io import BytesIO import requests import pdfplumber import re import boto3 from boto3.dynamodb.conditions import Key, Attr import json def lambda 阅读全文
posted @ 2022-07-19 04:41 速搞 阅读(110) 评论(0) 推荐(0)
摘要: from io import BytesIO import requests import pdfplumber req = requests.get("https://www1.hkexnews.hk/listedco/listconews/sehk/2020/0124/2020012400942 阅读全文
posted @ 2022-07-19 03:06 速搞 阅读(108) 评论(0) 推荐(0)