码迷,mamicode.com
首页 >  
搜索关键字:reading    ( 1497个结果
j.net 实现json的序列化与反序列化
首先理解,json是一种数据格式,而非一种数据类型。json格式的数据类型在c#中为string 开始测试: 使用Newtonsoft.Json包 一:json转object 结果: 二:对象类型转json 同样使用Newtonsoft.Json包 需要说明的是 ...
分类:Web程序   时间:2017-10-22 00:18:30    阅读次数:144
python学习_day41_socketserver模块
一、socketserver实现并发编程 如下图socketserver模块中包含基于多线程实现并发编程的类和基于多进程的实现并发编程的类,它其实内部的实现的机制是将我们之前学习实现多线程、多进程的过程封装,按照特定的流程就可以使用,其中常用的还是基于tcp协议通信,多线程的用到的模块是Thread ...
分类:编程语言   时间:2017-10-20 21:36:46    阅读次数:306
log4net日志记录
自己动手,丰衣足食 1、config文件 2、代码 3、ConfigFile 4、启动 ...
分类:Web程序   时间:2017-10-20 16:52:23    阅读次数:195
finally
#!/usr/bin/python# Filename: finally.pyimport timetry: f = file('poem.txt') while True: # our usual file-reading idiom line = f.readline() if len(line ...
分类:其他好文   时间:2017-10-20 10:15:00    阅读次数:118
Repository模式中,Update总是失败及其解析(转)
出处:http://www.cnblogs.com/scy251147/p/3688844.html 关于Entity Framework中的Attached报错的完美解决方案终极版 前发表过一篇文章题为《关于Entity Framework中的Attached报错的完美解决方案》,那篇文章确实能解 ...
分类:其他好文   时间:2017-10-20 10:13:06    阅读次数:338
python 文件处理seek
myFile=open("score.txt",'w') print("Name "+myFile.name) print("Mode "+myFile.mode) myFile.write("GBJ: 100\nKHD : 99\nBBB :89") myFile.close() #Read th... ...
分类:编程语言   时间:2017-10-16 09:46:12    阅读次数:129
消息处理模拟点击
using System; using System.Drawing; using System.Drawing.Printing; using System.Printing; using System.Runtime.InteropServices; namespace ConsoleAppli ...
分类:其他好文   时间:2017-10-13 16:16:20    阅读次数:264
CAR
classCar(): """一次模拟汽车的简单尝试""" def__init__(self,make,model,year): self.make=make self.model=model self.year=year self.odometer_reading=0 defget_descriptive_name(self): long_name=str(self.year)+‘‘+self.make+‘‘+self.model returnlong_name.title() d..
分类:其他好文   时间:2017-10-11 22:36:20    阅读次数:157
线程封装组件(BackgroundWorker)和线程(Thread)
BackgroundWorker是微软的在.net Framwork中添加的一个组件,主要对线程的访问提供了一种安全的方式。简单的说就是对Thread的一次封装。 BackgroundWorker位于System.ComponentModel下,是一个继承了Component的组件,微软官方的解释为 ...
分类:编程语言   时间:2017-10-10 13:13:29    阅读次数:237
spring boot(基于maven的项目结构)
1、创建一个maven项目,pom.xml文件里面写这些: 2、创建的文件目录如图: 3、在com.boot(即最外层目录文件)下写一个如下main方法: 4、在com.boot.web下创建一个类如下: @RequestMapping @ResponseBody 这两个注解都是springMVC的 ...
分类:编程语言   时间:2017-10-10 10:08:52    阅读次数:1273
1497条   上一页 1 ... 69 70 71 72 73 ... 150 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!