上一页 1 2 3 4 5 6 ··· 32 下一页
摘要: electron-store: https://electronjs.org/docs/api/app#appgetpathname app.getPath(name)-储存你应用程序设置文件的文件夹,默认是 appData 文件夹附加应用的名称。 appData-当前用户的应用数据文件夹,默认对应 阅读全文
posted @ 2022-08-13 14:39 zhishaofei3 阅读(4584) 评论(0) 推荐(0)
摘要: 官网 https://www.electronjs.org/zh/docs/latest/api/browser-window 一个electron + vue脚手架教程 https://juejin.cn/post/6913829610748641287 代码脚手架 https://www.ele 阅读全文
posted @ 2022-07-07 13:39 zhishaofei3 阅读(54) 评论(0) 推荐(0)
摘要: 恢复内容开始 变量 用下划线分割,而不是驼峰,因为下划线更清晰,如含有A的变量,ACar -> A_CAR input() 用户输入 不过输入的是字符串: user_input = input('Hey user, enter a number') 字符串函数可以进行字符串相关的判断: isiden 阅读全文
posted @ 2022-06-28 16:03 zhishaofei3 阅读(57) 评论(0) 推荐(0)
摘要: print(hello.encode()) # b'hello world1'print(memoryview(hello.encode())) #<memory at 0x00000263CAD23700>print(memoryview(hello.encode()).tobytes().dec 阅读全文
posted @ 2022-06-18 16:42 zhishaofei3 阅读(57) 评论(0) 推荐(0)
摘要: import sqlite3 conn = sqlite3.connect('play.sqlite') cur = conn.cursor() # 如果存在就删除 # cur.executescript(''' # DROP TABLE IF EXISTS User; # CREATE TABLE 阅读全文
posted @ 2022-06-17 15:16 zhishaofei3 阅读(240) 评论(0) 推荐(0)
摘要: 主键约束(PRIMARY KEY)主键约束的特点:主键约束相当于唯一性约束+ 非空约束,主键约束不允许重复,也不允许出现空值 一个表最多只能有一个主键约束,建立主键约束可以在列级别创建,也可以再表级别创建 主键约束对应着表中的一列或者多列 对应着多列的时候就是复合主键(可以类比我们之前讲过的复合唯一 阅读全文
posted @ 2022-06-16 23:37 zhishaofei3 阅读(765) 评论(0) 推荐(0)
摘要: track.py: import xml.etree.ElementTree as ET import sqlite3 conn = sqlite3.connect('trackdb.sqlite') cur = conn.cursor() # Make some fresh tables usin 阅读全文
posted @ 2022-06-16 11:37 zhishaofei3 阅读(94) 评论(0) 推荐(0)
摘要: import xml.etree.ElementTree as ET data = ''' <person> <name>Chuck</name> <phone type="intl"> +1 734 303 4456 </phone> <email hide="yes" /> </person>' 阅读全文
posted @ 2022-06-12 17:18 zhishaofei3 阅读(65) 评论(0) 推荐(0)
摘要: beautifulsoup 解析html库 https://beautifulsoup.readthedocs.io/zh_CN/v4.4.0/ html_doc = """ <html><head><title>The Dormouse's story</title></head> <body> 阅读全文
posted @ 2022-06-12 17:05 zhishaofei3 阅读(53) 评论(0) 推荐(0)
摘要: 使用内置urllib: import urllib.request, urllib.parse, urllib.error fhand = urllib.request.urlopen('http://data.pr4e.org/romeo.txt') for line in fhand: prin 阅读全文
posted @ 2022-06-12 15:39 zhishaofei3 阅读(70) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 32 下一页