这几天学习了pycharm的使用。 #!/user/bin/env python #-*-coding:utf-8-*- 》ok File 》settings 》Editor 》Font 》size 18 a.点击需要运行的文件 右键 run b.view 》toolbar 选中要执行的文件 点击 ...
分类:
编程语言 时间:
2017-12-21 22:58:49
阅读次数:
220
import tkinter as tk window = tk.Tk() # 窗口obj对象 window.title('my TK') # 窗口名字 window.geometry('200x100') # 窗口宽度和高度 # Label对象传入相应参数text:文本内容; bg:背景; fon ...
分类:
编程语言 时间:
2017-12-16 13:14:14
阅读次数:
373
主要是pypinyin 包,官网: http://pypinyin.readthedocs.io/zh_CN/master/index.html jieba包,主要是用来分词的,我之前的博文有介绍:http://www.cnblogs.com/dahu-daqing/p/7491343.html 官 ...
分类:
编程语言 时间:
2017-12-12 17:36:17
阅读次数:
274
常用模块: 模块介绍 time &datetime模块 random os sys shutil json & picle shelve xml处理 yaml处理 configparser hashlib subprocess logging模块 模块分为三种: 自定义模块 内置标准模块(又称标准库 ...
分类:
编程语言 时间:
2017-12-12 01:05:04
阅读次数:
399
JetBrains: Developer Tools for Professionals and Teams ?http://www.jetbrains.com/ PyCharm: Python IDE for Professional Developers by JetBrains ?http://www.jetbrains.com/pycharm/?fromMenuPyCh
分类:
其他好文 时间:
2017-12-05 22:47:39
阅读次数:
333
昨天晚上,我们完成了一个简单的实例来对数据库表进行操作。今天,我们要熟悉更多的API,实现更复杂的功能。这一步完成了,我们对小型数据的操作问题也就不大了。 现在,我们还是参考django官方文档,来进行学习 1.构造数据表 把以下内容,拷贝到你的朋友charm中,然后执行migrate命令 clas ...
分类:
数据库 时间:
2017-09-26 22:29:35
阅读次数:
195
Charm Bracelet Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 41106 Accepted: 17884 Description Bessie has gone to the mall's jewelry stor ...
分类:
其他好文 时间:
2017-08-26 10:12:27
阅读次数:
187
Bessie has gone to the mall's jewelry store and spies a charm bracelet. Of course, she'd like to fill it with the best charms possible from the N(1 ≤ ...
分类:
其他好文 时间:
2017-08-20 12:28:26
阅读次数:
217
0-1背包问题的题目样式 有 N 件物品和一个容量为 M 的背包。放入第 i 件物品耗费的费用是 Wi,得到的价值是 Vi。求解将哪些物品装入背包可使价值总和最大。 0-1背包问题关键在于该物品放或不放,即在当前容量为M的的情况下,选择不选择该物品,那么就有一个转移方程 for(i=0 - N) f ...
分类:
其他好文 时间:
2017-08-19 12:42:15
阅读次数:
185
POJ 3624 Charm Bracelet 题目链接:http://poj.org/problem?id=3624 Description Bessie has gone to the mall's jewelry store and spies a charm bracelet. Of cou ...
分类:
其他好文 时间:
2017-08-08 12:43:57
阅读次数:
189