鍍金池/ 問答/ 網(wǎng)絡(luò)安全問答
祉小皓 回答

因?yàn)閞ead_csv的第一個(gè)參數(shù)是:

filepath_or_buffer : str, pathlib.Path, py._path.local.LocalPath or any object with a read() method (such as a file handle or StringIO)

所以可以接受open之后的io對(duì)象,而open函數(shù)是支持中文名字的,所以不會(huì)出現(xiàn)打開錯(cuò)誤

厭遇 回答

case中要求的是常量,一般是不能進(jìn)行邏輯判斷的, 所以這也是if語(yǔ)句優(yōu)于switch語(yǔ)句的地方!

卟乖 回答

從字面意思上理解 他說可以超出 并不是說默認(rèn)就超出 理論上所有的元素都可以超出父容器的顯示范圍 BFC只是定義區(qū)域內(nèi)的排序規(guī)則 而不是展示范圍

舊言 回答

t=[]
返回的是a指向的地址,而不是指向a的地址,所以t和a指向同一個(gè)地址,而不是t指向a,a再指向[]。這里沒有指針的指針

祈歡 回答

HBuilder開發(fā)的5+App本身入口是可以填寫網(wǎng)絡(luò)地址的,就是manifest.json的入口地址。
最近DCloud出了個(gè)新產(chǎn)品 wap2app,把已有的移動(dòng)網(wǎng)站快速打包成移動(dòng)應(yīng)用的框架。
這個(gè)wap2app框架出來之前,我在之前公司也嘗試自己搞過類似的東西,就是把我們的移動(dòng)站包了一層,做了一些簡(jiǎn)單的強(qiáng)化。

祈歡 回答

asp.net 中Session實(shí)現(xiàn)了讀寫鎖。
你的問題是a.aspx中實(shí)現(xiàn)了寫鎖,阻塞了b.aspx頁(yè)面對(duì)session的訪問。
如果想同時(shí)訪問,請(qǐng)?jiān)O(shè)置a.aspx如下
<%@ Page EnableSessionState="ReadOnly"%>,同樣,b.aspx中也要這樣設(shè)置,因?yàn)樽x鎖可以阻塞寫鎖。
這時(shí)b.aspx可以正常訪問了。
同樣,如果是要自定義實(shí)現(xiàn)IHttpHandler,需要在實(shí)現(xiàn)IRequiresSessionStateIReadOnlySessionState兩個(gè)標(biāo)記接口。
摘自MSDN
https://social.msdn.microsoft...

終相守 回答

最近項(xiàng)目中剛用到

import Editor from 'wangeditor'

export default {
    methods: {
        initEditor() {
            var editor = new Editor('#editor')
            // editor.customConfig.uploadImgShowBase64 = true
            // editor.customConfig.uploadImgServer = '/upload'
            editor.customConfig.uploadImgServer = '/upload';
            editor.customConfig.uploadFileName = 'uploadfile';
            editor.customConfig.uploadImgHooks = {
                customInsert: function (insertImg, result, editor) {
                    var url = result.url
                    insertImg(url)
                }
            }
            editor.customConfig.customAlert = (info) => {
                this.$Notice.info({title: info})
            }
            editor.customConfig.onchange = (html) => {
                this.form.content = html
            }
            editor.create()
        }
    },
    mounted() {
        this.initEditor()
    }
遲月 回答

OP的意思是覺得鏈接的資料不足夠理解這個(gè)函數(shù)嗎?
用google搜下, 以下是可能有用的鏈接:
https://docs.microsoft.com/en...

https://stackoverflow.com/que...

https://cboard.cprogramming.c...

http://en.cppreference.com/w/...

Update:
這是一個(gè)X-Y problem. 你需要搞懂的是這些keyword的意思, 而不是單純的"如何看 c語(yǔ)言中函數(shù)(strcat_s)說明". 利用好搜索引擎, 比如google, 知道學(xué)習(xí)c語(yǔ)言一些常見的參考站點(diǎn), 比如man page, cppreference的c版, Stack Overflow.

舉個(gè)例子, http://en.cppreference.com/w/... 這里就有對(duì)errno_t的說明:

a typedef for the type int, used to self-document functions that return errno values
兮顏 回答

CONSTANTS.REPORT_CATEGORY_LIST是個(gè)symbol

掛念你 回答

因?yàn)檫@個(gè)范圍內(nèi)的任何兩個(gè)數(shù)相除得到的結(jié)果中,誤差最小的也比浮點(diǎn)數(shù)的精度要大。

痞性 回答

個(gè)人同意你的觀點(diǎn),hybrid模式web不能嵌套原生頁(yè)面。但是它可以傳遞一些事件,調(diào)用原生視圖。

萌面人 回答

child_process.exec可以執(zhí)行指令。但是windows具體的指令我就不會(huì)了。

官網(wǎng)文檔

拮據(jù) 回答

@oxf1992

按照你所說,在controller 中執(zhí)行休眠的時(shí)候,符合差不多同時(shí)執(zhí)行的規(guī)律
但是如果在controller 調(diào)用service,service執(zhí)行休眠的時(shí)候,兩個(gè)間隔時(shí)間比較長(zhǎng),但又小于休眠時(shí)間,具體代碼如下

@RestController
@RequestMapping("/test")
public class TestController {
    private static final Logger logger = LoggerFactory.getLogger(TestController.class);
    @Autowired
    private IUserService userService;

    @GetMapping("/user")
    public Object testUser() {
        logger.info("testController:{}", this.toString());
        logger.info("userService:{}", userService.toString());
        userService.get(1l);
        return "ok";
    }

    @RequestMapping("/foo2")
    public Object foo2(HttpServletRequest request) throws InterruptedException {
        String param = request.getParameter("p");
        logger.error("param:{}", param);
        long start = System.currentTimeMillis();
        Thread.sleep(10000);
        long end = System.currentTimeMillis();
        logger.error("time:{}", end - start);
        return end - start;
    }
}


    @Override
    public void get(Long id) {
        logger.error("get start...{}", this.toString());
        try {
            Thread.sleep(30000l);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        logger.error("get end...{}", this.toString());
    }

結(jié)果如下:

2018-03-28 15:53:04.559  INFO 21776 --- [io-8080-exec-10] c.e.m.web.controller.TestController      : testController:com.example.multimodule.web.controller.TestController@189ebbd
2018-03-28 15:53:04.559  INFO 21776 --- [io-8080-exec-10] c.e.m.web.controller.TestController      : userService:com.example.multimodule.service.service.impl.UserServiceImpl@2a12ba65
2018-03-28 15:53:04.559 ERROR 21776 --- [io-8080-exec-10] c.e.m.s.service.impl.UserServiceImpl     : get start...com.example.multimodule.service.service.impl.UserServiceImpl@2a12ba65
2018-03-28 15:53:25.665  INFO 21776 --- [nio-8080-exec-4] c.e.m.web.controller.TestController      : testController:com.example.multimodule.web.controller.TestController@189ebbd
2018-03-28 15:53:25.665  INFO 21776 --- [nio-8080-exec-4] c.e.m.web.controller.TestController      : userService:com.example.multimodule.service.service.impl.UserServiceImpl@2a12ba65
2018-03-28 15:53:25.665 ERROR 21776 --- [nio-8080-exec-4] c.e.m.s.service.impl.UserServiceImpl     : get start...com.example.multimodule.service.service.impl.UserServiceImpl@2a12ba65
2018-03-28 15:53:34.559 ERROR 21776 --- [io-8080-exec-10] c.e.m.s.service.impl.UserServiceImpl     : get end...com.example.multimodule.service.service.impl.UserServiceImpl@2a12ba65
2018-03-28 15:53:55.665 ERROR 21776 --- [nio-8080-exec-4] c.e.m.s.service.impl.UserServiceImpl     : get end...com.example.multimodule.service.service.impl.UserServiceImpl@2a12ba65
2018-03-28 15:54:01.853 ERROR 21776 --- [nio-8080-exec-8] c.e.m.web.controller.TestController      : param:aaaaa
2018-03-28 15:54:03.788 ERROR 21776 --- [nio-8080-exec-5] c.e.m.web.controller.TestController      : param:bbbb
2018-03-28 15:54:11.854 ERROR 21776 --- [nio-8080-exec-8] c.e.m.web.controller.TestController      : time:10000
2018-03-28 15:54:13.788 ERROR 21776 --- [nio-8080-exec-5] c.e.m.web.controller.TestController      : time:10000

可以看到兩次執(zhí)行foo2請(qǐng)求,基本是同時(shí)執(zhí)行,但兩次執(zhí)行user,中間間隔時(shí)間較長(zhǎng)

風(fēng)畔 回答

兩種方法

.box li,.box2 li{
    width: 100px;
    height: 30px;
    display: inline-block;
    background: red;
}
.box li:nth-child(2n),
.box2 li:nth-child(2n){
    background: blue;
}
        
.box{
    width: 300px;
    white-space: nowrap;
    overflow-x: auto;
    border:1px solid #999
}
        
.box2{
    width: 300px;
    overflow-x: auto;
    border:1px solid #999
}
.box2{
    display: flex;
}
.box2 li{
    flex-shrink:0
}

<ul class="box">
    <li></li><li></li><li></li><li></li><li></li><li></li>
</ul>

<ul class="box2">
    <li></li><li></li><li></li><li></li><li></li><li></li>
</ul>
懶洋洋 回答

centos哈?

命令:vi /etc/hosts

在最后一行:127.0.0.1 iZuf66j5nlb2arg99viiuyZ

保存,退出。

凝雅 回答

已使用darge-d3解決

巫婆 回答

問題解決了,啟動(dòng)腳本sh文件沒有配置新加入的jar包信息,更新后即可正常運(yùn)行

誮惜顏 回答

啥?你打了 supervisor 標(biāo)簽?supervisor 支持 Windows??

你的服務(wù)不能訪問 D3D 唄。服務(wù)的運(yùn)行環(huán)境和普通進(jìn)程是不一樣的嘛。你去看看 MSDN 文檔,看看服務(wù)要怎么訪問 D3D。