ICode9

精准搜索请尝试: 精确搜索
  • 2019年6月日志2019-07-29 19:36:13

    2019.6.1 Some plans 完成试题库问题 Do something 早上:语文探讨如何写好材料作文,思考了很多,自习机房写圆桌问题,化学简单说些试卷上的问题,就开始讲选修4了,真快。 中午:写最长不下降子序列问题,比以前顺利得多了,写完13:12,睡觉。 下午:自习写完blogblogblog,数学学习了正弦定

  • linux的svn命令2019-07-27 15:40:26

    目录 1.将文件checkout到本地目录   2.将改动的文件提交到版本库   3.添加新文件           4.删除文件             5.更新到某个版本       6.加锁/解锁             7.比较差异         8.查看状态         9.查看日志         10.查看

  • 设计模式的C语言应用-适配及系列模式-第六章2019-07-23 13:41:30

    模式介绍:适配系列模式 在《设计模式》中提出的23种模式,其中适配器模式(Adapter),装饰者模式(Decorator),代理模式(Proxy)都属于原始功能到目标功能之间的桥梁。 在面向对象里的设计里,这3种由于类的继承等面向对象特性,有比较明显的不同。在C语言里这些区别明显减弱,而且在实际的

  • raw_input|active:|continue|break|2019-07-04 13:01:19

    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

  • 安装完Cent OS 7.3 重启后出现“4m[terminated]”2019-07-01 18:27:39

    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

  • js中if语句的几种优化代码写法2019-07-01 13:02:45

    一、使用常见的三元操作符  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

  • JS中的if语句内如何加or使多个条件通过2019-06-26 17:00:18

    if(a==1&&b==2){     //do something }//条件是a等于1  并且  b等于2时才能成立,两个条件必须同时满足 if(a==1||b==2){     //do something }//条件是a等于1  或者  b等于2时才能成立,两个条件满足一个就行

  • 使用layer.msg 时间设置不起作用2019-06-22 10:00:16

    前几天使用layer.msg设置时间后发现不起作用,这里记录一下。   开始出错误的代码:   后面查看文档后得知调用layer.msg后如果有后续操作需要写在function()中: //eg1layer.msg('只想弱弱提示');//eg2layer.msg('有表情地提示', {icon: 6}); //eg3layer.msg('关闭后想做些什么', fu

  • Summer Schedule2019-06-16 16:02:01

    前言  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

  • sensors2019-06-07 19:47:49

    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;

  • ARTS-S python抽象方法抽象类2019-06-06 16:52:15

    # 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

  • 带有初始化器的if语句 C++172019-05-30 22:49:35

    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

  • centos安装svn,centos客户端运用svn2019-05-13 21:00:24

    场景:   操作如下: 搭建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:设置账号和密

  • Python基础——9.3 Python多线程与多进程(下)2019-04-14 14:54:46

    内容简述: 1、multiprocess模块详解 1、multiprocess模块详解 Python的os模块封装了常见的系统调用,其中就包含 「 fork函数」,通过这个函数可以轻松的创建子进程,但是要注意一点,在Windows系统上是无法使用fork函数的,Python为我们提供了可跨平台的 multiprocess 模块。该模块提

  • 了解Python控制流语句——continue 语句2019-04-08 10:53:45

    continue 语句用以告诉 Python 跳过当前循环块中的剩余语句,并继续该循环的下一次迭代。 案例(保存为 continue.py): while True: s = input('Enter something : ') if s == 'quit': break if len(s) < 3: print('Too small') continue print(&

  • MVC依赖注入2019-03-08 13:48:26

    #引用 “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

  • vue每次请求加头部(shiro+vue)2019-02-22 10:01:02

       前后台分离,全局请求加头部 _axios.interceptors.request.use( function(config) { var accessToken = localStorage.getItem('accessToken'); if (accessToken && accessToken !== '') { config.headers.common['Authorization']

  • flask 重定向到上一个页面,referrer、next参数2019-02-19 22:40:40

    重定向会上一个页面 在某些场景下,我们需要在用户访问某个url后重定向会上一个页面,比如用户点击某个需要登录才能访问的连接,这时程序会重定向到登录页面,当用户登录后比较合理的行为是重定向到用户登录前浏览的页面。   下面的例中,在foo和bar视图中生成连接,链接过去后,没有重定向会上

  • 201902142031_《Node.js之模块一二事(1)》2019-02-14 20:54:33

    ...   1. require("xxx").resolve();   //获取绝对路经   2. require是在node_modules里一级级找;   3. export.someThing = function(){ }; 等价于: modules.exports.someThing = function(){ };   ...

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有