摘要: package main import( "fmt" ) const( B float64 = 1 <<(iota * 10) KB MB GB TB PB EB ZB YB ) func main() { fmt.Println(B) fmt.Println(KB) fmt.Print... 阅读全文
posted @ 2016-09-08 16:51 JohnRey 阅读(296) 评论(0) 推荐(0) 编辑
摘要: C#脚本: shader脚本: 阅读全文
posted @ 2016-07-14 14:20 JohnRey 阅读(377) 评论(0) 推荐(0) 编辑
摘要: C#脚本如下: shader脚本如下: C#脚本拖到摄像机上面即可。 阅读全文
posted @ 2016-07-14 13:26 JohnRey 阅读(2373) 评论(0) 推荐(0) 编辑
摘要: 执行命令: 如果出现错误,则执行命令xcode-select --install,然后重新进行上一步,具体错误如下: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX1 阅读全文
posted @ 2016-05-30 11:27 JohnRey 阅读(8073) 评论(0) 推荐(0) 编辑
摘要: html代码如下: jQuery代码如下 阅读全文
posted @ 2016-05-17 22:28 JohnRey 阅读(386) 评论(0) 推荐(0) 编辑
摘要: Get方式传参 Django中的代码如下: urls.py代码: views.py代码: jQuery中的代码如下: 方式1: 方式2: 方式3: POST方式传参 Django中的代码如下: urls.py代码: views.py代码如下: jQuery中的代码如下: 方式1: 方式2: 方式3: 阅读全文
posted @ 2016-05-16 23:04 JohnRey 阅读(3837) 评论(0) 推荐(0) 编辑
摘要: 添加cookie: 获得cookie: 删除cookie: Response.delete_cookie("username") 添加session: 获取session: 删除session: del req.session['username'] 阅读全文
posted @ 2016-04-28 23:06 JohnRey 阅读(2939) 评论(0) 推荐(0) 编辑
摘要: LoadFile.html中的代码如下(对应的form表单): models.py中的代码如下(对应的数据库): view.py中的代码如下: 阅读全文
posted @ 2016-04-27 22:31 JohnRey 阅读(274) 评论(0) 推荐(0) 编辑
摘要: views.py中的代码: 阅读全文
posted @ 2016-04-26 22:44 JohnRey 阅读(283) 评论(0) 推荐(0) 编辑
摘要: views.py中编写相关代码 第一种加载方式 第二种加载方式 阅读全文
posted @ 2016-04-23 18:05 JohnRey 阅读(298) 评论(0) 推荐(0) 编辑