# -*- coding: utf-8 -*- # @Time : 2020/7/26 14:13 # @Author : Breeze # @FileName: 购物车程序.py product_list = [ ("Mac",9000), ("kindle",800), ("tesla",900 ...
分类:
其他好文 时间:
2020-07-27 15:36:49
阅读次数:
63
# -*- coding: utf-8 -*- # @Time : 2020/7/25 22:45 # @Author : Breeze # @FileName: login_while.py user_name = "Breeze" password = "123456789" counter = ...
分类:
其他好文 时间:
2020-07-27 15:35:26
阅读次数:
67
# -*- coding: utf-8 -*- # @Time : 2020/7/25 14:09 # @Author : Breeze # @FileName: 字符格式化输出.py name = input("Name:") age = int(input("Age:")) job = inpu ...
分类:
其他好文 时间:
2020-07-27 15:34:29
阅读次数:
60
1.安装NLog、NLog.Config包 2.添加日志类 public class LogFactory { public static Logger log; private string filename; /// <summary> /// 日志类 /// </summary> /// <p ...
分类:
Web程序 时间:
2020-07-27 13:55:43
阅读次数:
165
1、导入背景图至/boot/grub/下 rz filename 2、转化图片为启动菜单所需要的格式和后缀 convert -resize 640x480 -colors 14 backup.jpg back1.xpm 3、系统要求的后缀是.xpm.gz gzip back1.xpm 4 修改文件g ...
分类:
其他好文 时间:
2020-07-27 13:43:10
阅读次数:
81
在获取yaml文件数据时,提示:UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 2: illegal multibyte sequence import yaml def test_yaml(): with ope ...
分类:
编程语言 时间:
2020-07-26 16:00:12
阅读次数:
88
Python基础编程 Author : AI菌 【操作步骤】 Pyhton对文件操作,主要包含以下3个步骤: 1、打开文件2、读/写数据 3、关闭文件 【代码实现】 """ Python操作文件的步骤: 1.打开文件 2.读/写数据 3.关闭文件 """ # 写数据 # 1.打开文件 f = ope ...
分类:
编程语言 时间:
2020-07-26 02:01:54
阅读次数:
67
// item 为 chooseImage 返回的图片 path let buffer = wx.getFileSystemManager().readFileSync(item) wx.cloud.callFunction({ name:'printedTextOCR', data: { buff ...
分类:
微信 时间:
2020-07-26 00:56:32
阅读次数:
103
1.例子 import csv def writeToCSV(fileName): outputFile = open(fileName,'w',newline='') outputWriter = csv.writer(outputFile) #outputWriter = csv.writer( ...
分类:
编程语言 时间:
2020-07-26 00:39:51
阅读次数:
75
基本操作从远程仓克隆项目到本地添加本地已有项目Git的三个工作区域1、常见的基本操作克隆代码:git clone ssh或HTTPS网址查看状态:git status添加文件:git add filename添加所有文件:git add .添加后提交修改:git commit –m “修改提示信息”... ...
分类:
其他好文 时间:
2020-07-26 00:32:09
阅读次数:
74