08 2021 档案
摘要:mart phones were the new hit many years ago. As a consequence, the programming languages that were used to write mobile applications became very popul
阅读全文
摘要:What is PyQt5? PyQt is a library that lets you use the Qt GUI framework from Python. Qt itself is written in C++. By using it from Python, you can bui
阅读全文
摘要:异常捕获 异常:程序在运行过程中出现了不可预知的错误,并且该错误没有对应的处理机制,那么就会以异常的形式表现出来 影响:整个程序无法再正常运行 异常的结构 异常的类型 NameError 异常的信息 name 'safaf' is not defined 异常的位置 ''' Traceback (m
阅读全文
摘要:WebView在加载失败时会显示一个失败原因的界面,各个手机显示的界面还都不一样,部分手机还会把Url显示出来;我们要做的就是统一加载失败的界面; 大概思路:在WebView这个控件上面再覆盖一个View,监听WebView加载失败时把这个View显示出来,这样用户就看不到原来的WebView的失败
阅读全文
摘要:Kotlin语言中 集合的api中有很多强大的功能 例如list集合提供了 一个 shuffled()的函数可以对集合进行洗牌(类似于扑克牌的洗牌),这样吧每次可以获取到不同的数据,可以很容易实现类似于首页随机推荐几条数据的功能。//运行以下函数fun main(args:Array<String>
阅读全文
摘要:SyntaxThere are two types of parsers in the system: the full SQL parser (a recursive descent parser), and the data format parser (a fast stream parser
阅读全文
摘要:mart phones were the new hit many years ago. As a consequence, the programming languages that were used to write mobile applications became very popul
阅读全文
摘要:第一种: 在h5中调用kotlin的方法:使用flask起一个简单的web项目,在项目中添加一个按钮,并加入js代码 然后在kotlin中创建一个类: package com.example.mykotlinh5 import android.content.Context import andro
阅读全文