2019.6.1 Some plans 完成试题库问题 Do something 早上:语文探讨如何写好材料作文,思考了很多,自习机房写圆桌问题,化学简单说些试卷上的问题,就开始讲选修4了,真快。 中午:写最长不下降子序列问题,比以前顺利得多了,写完13:12,睡觉。 下午:自习写完blogblogblog,数学学习了正弦定
目录 1.将文件checkout到本地目录 2.将改动的文件提交到版本库 3.添加新文件 4.删除文件 5.更新到某个版本 6.加锁/解锁 7.比较差异 8.查看状态 9.查看日志 10.查看
模式介绍:适配系列模式 在《设计模式》中提出的23种模式,其中适配器模式(Adapter),装饰者模式(Decorator),代理模式(Proxy)都属于原始功能到目标功能之间的桥梁。 在面向对象里的设计里,这3种由于类的继承等面向对象特性,有比较明显的不同。在C语言里这些区别明显减弱,而且在实际的
1 a = "please" 2 b = "say something:" 3 c =a+b 4 m = 0 5 a = True 6 while a: 7 m = int(raw_input(c)) 8 print m+1 9 if m>11:10 a = False11 12 #please say something:wwwwwww13 '''14 python t.py15 ple
This is a sigterm kill initiated by a CentOS 7 reboot command after a fresh install. It is obviously a issue that needs to be patched as the image is supposed to reboot not halt. Probably has something to do with the reboot or shutdown command that is not
一、使用常见的三元操作符 if (foo) bar(); else baz(); ==> foo?bar():baz(); if (!foo) bar(); else baz(); ==> foo?baz():bar(); if (foo) return bar(); else return baz(); ==> return foo?bar():baz(); 二、使用and(&&)和or(||)运算符 if (foo) bar(); ==> foo&a
if(a==1&&b==2){ //do something }//条件是a等于1 并且 b等于2时才能成立,两个条件必须同时满足 if(a==1||b==2){ //do something }//条件是a等于1 或者 b等于2时才能成立,两个条件满足一个就行
前几天使用layer.msg设置时间后发现不起作用,这里记录一下。 开始出错误的代码: 后面查看文档后得知调用layer.msg后如果有后续操作需要写在function()中: //eg1layer.msg('只想弱弱提示');//eg2layer.msg('有表情地提示', {icon: 6}); //eg3layer.msg('关闭后想做些什么', fu
前言 Foreword Let me tell something about myself and this Summer Holiday. The Summer Holidays is coming , and I want to write something to record my struggle of the NOIP 2019. NOIP2019 must be the last time I set my foot on my dreams, and it must be the la
import 'package:sensors/sensors.dart';accelerometerEvents.listen((AccelerometerEvent event) { // Do something with the event.});gyroscopeEvents.listen((GyroscopeEvent event) { // Do something with the event.});数据:event.x event.y event.z;
# coding: utf-8 from abc import ABC, abstractmethod class AbstractClassExample(ABC): def __init__(self, value): self.value = value super().__init__() @abstractmethod def do_something(self): pass class A(AbstractC
1 #include <iostream> 2 3 int foo(int arg) { // do something 4 return (arg); 5 } 6 7 int main() { 8 9 if (auto x = foo(42); x > 40) {10 // do something with x11 } else {12 // do something with x13 }14 15 au
场景: 操作如下: 搭建svn服务器:192.168.43.130 1.安装subversion 2.创建本地仓库 mkdir /haha/svn/something svnadmin create /haha/svn/something 3.会发现something下已经有配置文件,cd /haha/svn/something/conf路径下 都要改其配置文件: 第一个passwd:设置账号和密
内容简述: 1、multiprocess模块详解 1、multiprocess模块详解 Python的os模块封装了常见的系统调用,其中就包含 「 fork函数」,通过这个函数可以轻松的创建子进程,但是要注意一点,在Windows系统上是无法使用fork函数的,Python为我们提供了可跨平台的 multiprocess 模块。该模块提
continue 语句用以告诉 Python 跳过当前循环块中的剩余语句,并继续该循环的下一次迭代。 案例(保存为 continue.py): while True: s = input('Enter something : ') if s == 'quit': break if len(s) < 3: print('Too small') continue print(&
#引用 “When you go and get things out of the refrigerator for yourself, you can cause problems. You might leave the door open, you might get something Mommy or Daddy doesn’t want you to have. You might even be looking for something we don’t even have or whi
前后台分离,全局请求加头部 _axios.interceptors.request.use( function(config) { var accessToken = localStorage.getItem('accessToken'); if (accessToken && accessToken !== '') { config.headers.common['Authorization']
重定向会上一个页面 在某些场景下,我们需要在用户访问某个url后重定向会上一个页面,比如用户点击某个需要登录才能访问的连接,这时程序会重定向到登录页面,当用户登录后比较合理的行为是重定向到用户登录前浏览的页面。 下面的例中,在foo和bar视图中生成连接,链接过去后,没有重定向会上
... 1. require("xxx").resolve(); //获取绝对路经 2. require是在node_modules里一级级找; 3. export.someThing = function(){ }; 等价于: modules.exports.someThing = function(){ }; ...