#实验二 SQL数据定义和操作
####李奥 3130001009 ####日期:2014/10/16
##实验目的:
- 掌握关系数据库语言SQL的使用。
- 完成如下SQL作业能上机通过。
#实验二 SQL数据定义和操作
####李奥 3130001009 ####日期:2014/10/16
##实验目的:
| set nocompatible | |
| set nobackup | |
| set noswapfile | |
| set cindent | |
| set smartindent | |
| syntax on |
| import requests | |
| import os.path | |
| import sys | |
| import json | |
| CONFIG_FILE = "./score_bomb.json" | |
| GRADE_FILE = "./grade.json" | |
| if not os.path.isfile(CONFIG_FILE): | |
| data = {} |
| set nocompatible | |
| set nobackup | |
| set noswapfile | |
| set cindent | |
| set smartindent | |
| syntax on |
| set clipboard=unnamed | |
| let g:go_bin_path = expand("~/.gotools") | |
| set expandtab | |
| set smarttab | |
| set tabstop=4 | |
| set shiftwidth=4 | |
| set softtabstop=4 | |
| set shortmess=a |
| Bundle "Raimondi/delimitMate" | |
| Bundle "Valloric/YouCompleteMe" | |
| Bundle "adimit/prolog.vim" | |
| Bundle "klen/python-mode" | |
| Bundle "fatih/vim-go" |
| { | |
| "keymaps": { | |
| "0": { "type": "scroll.home" }, | |
| ":": { "type": "command.show" }, | |
| "o": { "type": "command.show.open", "alter": false }, | |
| "O": { "type": "command.show.open", "alter": true }, | |
| "t": { "type": "command.show.tabopen", "alter": false }, | |
| "T": { "type": "command.show.tabopen", "alter": true }, | |
| "w": { "type": "command.show.winopen", "alter": false }, | |
| "W": { "type": "command.show.winopen", "alter": true }, |
| pragma solidity ^0.5.0; | |
| library SafeMath { | |
| function mul (uint256 a, uint256 b) internal pure returns (uint256) { | |
| uint256 c = a * b; | |
| assert(a == 0 || c / a == b); | |
| { | |
| return c; | |
| } | |
| { | |
| } |
| pragma solidity ^0.4.9; | |
| contract MultiOwned{ | |
| // pointer used to find a free slot in m_owners | |
| uint public m_numOwners; | |
| // the number of owners that must confirm the same operation before it is run. | |
| uint public m_required; |
| // Await Scenario | |
| Thread t = Thread.currentThread(); | |
| reschedule(); | |
| // Lock 3 | |
| if (L[o].owner != t && L[o].count > 0) { | |
| E.remove(t); | |
| W[o].add(t); | |
| reschedule(); | |
| } | |
| // Lock 1 & 2 |