自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

SWY's Workshop

To arms and to the death!

  • 博客(293)
  • 资源 (7)
  • 收藏
  • 关注

原创 我为什么要写博客

我为什么要写博客2017年,我考入大学,开始了我的编程生涯。在考入大学之前,我对于计算机的使用,仅限于office软件,还有,开机与关机。选择这个专业也是书生意气,既然美国人在这方面割全世界的韭菜(比如苹果),那么我便要投入到反知识产权垄断的战斗中。当然,我对于我个人的能力是不抱幻想的,不过我可以和千万名同行在一起奋斗。然而,我的兴奋并没有持续多久。繁重的课业很快压垮了我。身边都是搞过竞赛的大牛(银牌起步),老师上课也默认大家已经掌握了一些基础知识,结果就是上课听的很嗨,但一旦写代码就会手足无措。我印

2020-05-21 23:36:48 13395 22

原创 2018.6.9

2018.6.9楚国庞大的军队成分复杂。按照隶属关系,可分为正军与“游阙”,楚王之“左右广”,太子“宫甲”,贵族之私卒。正军,即左、中、右三军。其它诸侯亦有称为上、中、下三军者,但楚国称为左、中、右三军。如《左传》桓公八年:“季梁曰:‘楚人尚左,君必左。无与王迁,且攻其右。’”,宣公十二年:“楚子北师于郔,沈尹将中军,子重将左,子反将右。”正军的主力为车兵,楚人称之为“广”或“乘广”。注意,“广”作为一个编制单位,包括战车,车兵以及配套的步卒。一辆战车,其上有“甲士三人” 。每“广”中有步卒,《左传》宣公

2020-05-31 23:23:18 280

原创 2018.6.8

2018.6.8摘要:楚国从春秋时期的“子男”之地崛起为战国七雄之一,其中楚国的军队发挥了极大的左右。本文将系统的梳理已有传世文献中有关楚国军队建设的资料,力图展现春秋时期楚国军事建设的全貌。关键词:春秋时期;楚国;军队建设;法律;官制...

2020-05-31 22:43:33 200

原创 2018.6.7

2018.6.7 def get_ingredients(self, fridge): self.from_fridge = fridge.get_ingredients(self) def mix(self): for ingredient in self.from_fridge.keys(): print("Mixing %d %s for the %s omelet" % (self.from_fridge[ingredient

2020-05-31 20:18:40 177

原创 《python基础教程》答案(第七章)

《python基础教程》答案(第七章)Fridge.py# created by swy"""solutions to beginning python"""class Fridge: def __init__(self, items={}): """ Optionally pass in an initial dictionary of items :param items: """ if type(i

2020-05-31 20:15:54 1566

原创 2018.6.6

2018.6.6 def get_many(self, food_dict): if self.has_various(food_dict): foods_removed = {} for item in food_dict.keys(): foods_removed[item] = self.__get_multi(item, food_dict[item]) return fo

2020-05-31 17:56:29 109

原创 2018.6.1

2018.6.1from Fridge import Fridgefrom Recipe import Recipefrom Omelet import Omelet__all__ = ['Fridge', 'Recipe', 'Omelet']

2020-05-31 17:14:44 134

原创 2018.6.5

2018.6.5if __name__ == '__main__': r = Recipe() if r.recipes != {"cheese": {"eggs": 2, "milk": 1, "cheese": 1}, "mushroom": {"eggs": 2, "milk": 1, "cheese": 1, "mushroom": 2}, "onion": {"eggs": 2, "milk":

2020-05-31 17:08:40 109

原创 2018.6.4

2018.6.4class Recipe: def __init__(self): self.set_default_recipes() return def set_default_recipes(self): self.recipes = {"cheese": {"eggs": 2, "milk": 1, "cheese": 1}, "mushroom": {"eggs": 2, "mil

2020-05-31 16:59:38 148

原创 2018.6.3

2018.6.3 def set_new_kind(self, name, ingredients): self.kind = name self.needed_ingredients = ingredients return def __known_kinds(self, kind): if kind == "cheese": return {"eggs": 2,"milk": 1, "cheese": 1

2020-05-31 15:51:43 104

原创 2018.5.79

2018.5.79 def get_many(self, food_dict): if self.has_various(food_dict): foods_removed = {} for item in food_dict.keys(): foods_removed[item] = self.__get_multi(item, food_dict[item]) return f

2020-05-31 15:21:10 101

原创 2018.5.78

2018.5.78//通过网络检查账号密码是否匹配,没有网你玩个锤子 if(passwordString.equals("114514")||passwordString.equals("1919810")){ //这里模拟切换账号 editor.putBoolean("isEnsured",true); //经过登录验证 editor.putString("account",accountSt

2020-05-30 23:44:09 176

原创 2018.5.77

2018.5.77//通过网络检查账号密码是否匹配,没有网你玩个锤子 if(passwordString.equals("114514")||passwordString.equals("1919810")){ //这里模拟切换账号 editor.putBoolean("isEnsured",true); //经过登录验证 editor.putString("account",accountSt

2020-05-30 23:09:41 134

原创 2018.5.75

2018.5.75 if(realOldPassword.equals(inputOldPassword)) { //如果无误 //上传新密码 //TODO editor.putBoolean("isEnsured", false); //将登录检查置为否 if (is

2020-05-30 22:17:14 133

原创 2018.5.74

2018.5.74preferences = PreferenceManager.getDefaultSharedPreferences(this); editor = preferences.edit(); final EditText account = (EditText) findViewById(R.id.login_account); final EditText password = (EditText) findViewById(R.id.l

2020-05-30 21:00:32 168

原创 2018.5.73

2018.5.73//通过网络检查账号密码是否匹配,没有网你玩个锤子 if(passwordString.equals("114514")||passwordString.equals("1919810")){ //这里模拟切换账号 editor.putBoolean("isEnsured",true); //经过登录验证 editor.putString("account",accountSt

2020-05-30 20:32:20 105

原创 《python基础教程》答案(第六章)

《python基础教程》答案(第六章)# created by swy"""solutions to beginning python"""class Omelet: """ This class will create an Omelet """ def __init__(self, kind="cheese"): """ This initializes an Omelet :param kind: chees

2020-05-30 17:17:28 3966

原创 2018.5.72

2018.5.72 def __known_kinds(self, kind): if kind == "cheese": return {"eggs": 2, "milk": 1, "cheese": 1} else: return False

2020-05-30 17:10:48 112

原创 2018.5.70

2018.5.70class Omelet: """ This class will create an Omelet """ def __init__(self, kind="cheese"): """ This initializes an Omelet :param kind: cheese """ self.set_kind(kind) return

2020-05-30 17:03:44 168

原创 2018.5.69

2018.5.69实际上,资本所极力推销的价值观,并非全盘皆错,相反,其绝大部分内涵是符合普世价值观的,资本的罪恶,在于用这大部分的普世价值,掩饰自己唯利是图的私货(也就是这大部分内涵以外的小部分)。比如,追求美,是符合普世价值观的,但资本在宣扬追求美的同时,将“美”的概念与它包装的明星捆绑起来;勤奋工作,是符合普世价值观的,但资本在宣传勤奋工作的同时,将其与非法加班捆绑起来。为了对抗这资本添加的一小部分丑陋的价值观,网络用户采用的方法是将资本推销的价值观全盘否定,因此窃贼才得以成为另类的“偶像”。

2020-05-29 23:04:59 314

原创 2018.5.68

2018.5.68另外,在阅读谐音字以及表情图案的过程中,人的意识会不自觉地产生对于这些谐音字在其他语境下涵义的联想——虽然大多数情况下这些涵义与抽象话作者想要表达的意思毫无关联。这些额外的涵义的通俗性与其所表达的意义的严肃性形成了反差,从而制造了幽默。这种幽默,一方面使得抽象话的作者所表达的不同意见不再那么刺耳,另一方面使得抽象话评论的对象感受到羞辱。...

2020-05-29 22:45:20 233

原创 《python基础教程》答案(第五章)

《python基础教程》答案(第五章)# created by swy"""solutions to beginning python"""def do_plus(firstNumber, secondNumber): return firstNumber + secondNumberdef do_plus_ex(firstNumber, secondNumber): if type(firstNumber) != type(1) or type(secondNumber

2020-05-29 21:37:10 969

原创 2018.5.67

2018.5.67def do_plus(firstNumber, secondNumber): return firstNumber + secondNumberdef do_plus_ex(firstNumber, secondNumber): if type(firstNumber) != type(1) or type(secondNumber) != type(1): raise KeyError return firstNumber + secon

2020-05-29 21:36:57 117

原创 2018.5.66

2018.5.66def do_plus_ex(firstNumber, secondNumber): if type(firstNumber) != type(1) or type(secondNumber) != type(1): raise KeyError return firstNumber + secondNumber

2020-05-29 21:35:47 119

原创 2018.5.65

2018.5.65<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_h

2020-05-29 20:53:51 155

原创 2018.5.64

2018.5.64<com.google.android.material.tabs.TabLayout app:layout_behavior="@string/appbar_scrolling_view_behavior" android:layout_width="match_parent" android:layout_height="50dp" android:background="@colo

2020-05-29 17:59:57 119

原创 2018.5.63

2018.5.63if(Math.random()*2>1){ // mock that the account is valid } else{ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("登录错误"); builder.setMessage("请重新登录")

2020-05-29 17:17:59 106

原创 2018.5.62

2018.5.62if(Math.random()*2>1){ // mock that the account is valid } else{ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("登录错误"); builder.setMessage("请重新登录")

2020-05-29 16:53:34 100

原创 程序验证(一):命题逻辑

程序验证(一):命题逻辑概念命题逻辑例如P∨¬Q→RP\vee \neg Q \to RP∨¬Q→R一个原子(atom)是一个或为真或为假的判断。一个文字(literal)是一个原子或它的非。命题公式(propositional formulas)由文字和逻辑连接符组成。合式公式合式公式(well-formed formulas) 由以下语法得到:⟨atom⟩\langle atom\rangle⟨atom⟩ ::= ⊤(true)∣⊥(false)∣P,Q,...(命题变量)\to

2020-05-29 15:51:52 12230

原创 2018.5.61

2018.5.61<style name="Theme.AppStartLoad" parent="android:Theme"> <item name="android:windowBackground">@drawable/tp</item> <item name="android:windowNoTitle">true</item> </style>

2020-05-28 23:05:54 161

原创 2018.5.60

2018.5.60<style name="Theme.AppStartLoadTranslucent" parent="android:Theme"> <item name="android:windowIsTranslucent">true</item> <item name="android:windowNoTitle">true</item> </style>

2020-05-28 22:58:08 120

原创 2018.5.59

2018.5.59Start State:Clear(B)∧Clear(C)∧On(C,A)∧On(B,Table)∧On(A,Table)Clear(B)\wedgeClear(C)\wedgeOn(C,A)\wedgeOn(B,Table)\wedgeOn(A,Table)Clear(B)∧Clear(C)∧On(C,A)∧On(B,Table)∧On(A,Table)Goal State:Clear(A)∧On(A,B)∧On(B,C)∧On(C,Table)Clear(A)\wedg

2020-05-28 22:49:52 122

原创 2018.5.58

2018.5.58<style name="Theme.AppStartLoadTranslucent" parent="android:Theme"> <item name="android:windowIsTranslucent">true</item> <item name="android:windowNoTitle">true</item> </style>

2020-05-28 22:36:54 163

原创 2018.5.57

2018.5.57<resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrima

2020-05-28 20:17:39 108

原创 2018.5.56

2018.5.56# created by swy"""solutions to beginning python"""fridge = {"Milk": "Thise milk", "Cheese": "Emmentaler", "Butter": "Unsalted butter"}food_sought = "Butter"try: wrongKey = fridge["Beer"]except KeyError: print("We are out of bee

2020-05-28 17:11:50 95

原创 《python基础教程》答案(第四章)

《python基础教程》答案(第四章)4.1# created by swy"""solutions to beginning python"""def printTrueFalse(X): if X: print("%s is true" % str(X)) else: print("%s is false" % str(X))printTrueFalse(0)printTrueFalse(1)printTrueFalse(2)p

2020-05-28 17:11:18 1509

原创 2018.5.55

2018.5.55# created by swy"""solutions to beginning python"""fridge = {"Milk": "Thise milk", "Cheese": "Emmentaler", "Butter": "Unsalted butter"}food_sought = "Butter"for foodKey in fridge: print("\nlooking at : %s", foodKey) if foodKey =

2020-05-28 16:56:36 154

原创 2018.5.54

2018.5.54# created by swy"""solutions to beginning python"""lookFor = "milk"lookIn = ["butter", "milk", "cheese"]if lookFor == lookIn[0]: print("found it")elif lookFor == lookIn[1]: print("found it ...")else: print("did not find it"

2020-05-28 16:53:02 85

原创 2018.5.53

2018.5.53# created by swy"""solutions to beginning python"""def printTrueFalse(X): if X: print("%s is true" % str(X)) else: print("%s is false" % str(X))printTrueFalse(0)printTrueFalse(1)printTrueFalse(2)printTrueFalse(

2020-05-28 16:45:40 91

原创 2018.5.52

2018.5.52<?xml version="1.0" encoding="utf-8"?><resources> <color name="colorPrimary">#6200EE</color> <color name="colorPrimaryDark">#3700B3</color> <color name="colorAccent">#03DAC5</color>

2020-05-27 23:46:43 245

莎士比亚戏剧单词表,保存为txt格式

莎士比亚戏剧单词表,保存为txt格式,与我的NLP博文配合使用。

2023-03-20

莎士比亚戏剧数据集各角色台词

莎士比亚戏剧数据集,第五、第六列分别为角色的名字以及他们的台词。与我的NLP系列博文配合使用。

2023-03-20

NLP 文本情感数据集-训练集

与我的NLP博文配套食用

2023-03-16

NLP 文本情感数据集-测试集

与我的NLP博文配套食用

2023-03-16

Frogs_MFCCs.csv

青蛙MFCC数据集

2020-05-11

train_set.csv

银行数据集,包括id,y,loan,housing,duration,pdays等标签

2020-05-10

arcanist.zip

这是Phabricator配套的Code Review工具,需要配合本地clt使用. 其提供了一个differential(code review)命令行工具Arcanist(arc)。

2020-05-04

php源代码,目前最新版

PHP即“超文本预处理器”,是一种通用开源脚本语言。PHP是在服务器端执行的脚本语言,与C语言类似,是常用的网站编程语言。PHP独特的语法混合了C、Java、Perl以及 PHP 自创的语法。利于学习,使用广泛,主要适用于Web开发领域。

2020-05-03

dafny-2.3.0.10506-x64-win.zip

dafny语言源代码 dafny 一种微软推出的编程语言用于程序正确性验证。是一种新型的语言。 (dafny one kind of Microsoft' s programming language for program correctness verification. Is a new language.)

2020-05-03

hsqldb-lib.zip

hsqldb可能需要的额外jar包 Additional Jar files needed for hsqldb.

2020-02-16

hsqldb-2.5.0.zip

开源数据库hsqldb最新版本2.5.0,含源代码及bin文件 Open-sourced database hsqldb2.5.0, including source code and bin file(stuctured in form of .BAT)

2020-02-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除