自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 资源 (9)
  • 收藏
  • 关注

原创 UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)

问题如下在实现一个功能函数的时候,出现了输出时候不能够输出中文的错误功能函数见链接[9/23/2019 2:34:45 PM] self.terminal.write(message) [9/23/20192:34:45 PM] UnicodeEncodeError: ‘ascii’ codec can’t encode charactersin position 0-1...

2019-09-24 11:27:54 188

原创 python将print输出的信息保留到日志文件中

import sysimport osimport sysimport ioimport datetimedef create_detail_day(): ''' :return: ''' # 年-月-日 # daytime = datetime.datetime.now().strftime('day'+'%Y-%m-%d') # 年...

2019-09-24 11:18:24 4226 2

原创 python3 将print打印的内容保存到日志

python3将print打印的内容保存到日志中,后面可以不断的查阅输出的内容而不需要每一次都要重新运行一下程序def make_print_to_file(path='./'): ''' path, it is a path for save your log about fuction print example: use make_print...

2019-09-16 14:32:10 15699 6

原创 UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)

问题如下:UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)解决:在write写入文件的时候,指定写入的格式, uft8self.log = open(os.path.join(path, filename), "a", encodin...

2019-09-16 14:07:49 491

原创 tensorboard运行错误 WARNING: tensorflow:Unable to get first event timestamp for run

WARNING:tensorflow:Unable to get first event timestamp for run 出现这个问题的原因是没有在程序结束的时候关闭写入解决如上下:from tensorboardX import SummaryWriterwriter = SummaryWriter('log')writer.close()...

2019-09-13 14:40:03 2853

转载 Xshell远程服务器后Tensorboard的本地可视化方法(转)

问题由于tensorflow程序在远程服务器运行,而tensorboard启动后访问地址为:0.0.0.0:6006,导致无法在本机...

2019-09-06 10:05:50 473

CaiQuanMySelfNew.zip

这是一个关于猜拳小游戏,采用的编程语言C#,对应的内容见我的博客: https://blog.csdn.net/xu380393916/article/details/85009975#comments

2019-11-05

一元线性回归相关代码

具体的实现内容,请参考我的博客文章 超级详解讲解线性回归(含吴恩达相关)

2019-03-05

C#入门经典第七版(Beginning C# 6.0 Programming with Visual Studio 2015)(中 + 英文, 代码上官网下载)

上传的资源有2份,中文 + 英文,两个pdf都是文字版的(非扫描版),可编辑与复制。 本书面向想学习如何使用.NET Framework编写C#程序的所有人。 本书针对的是想要通过学习一种干净、 现代、 优雅的编程语言来掌握程 序设计的完完全全的初学者。 但是, 对于熟悉其他语言、 想要探索.NET 平台的人们, 以及想要了解.NET使用的旗舰语言的.NET开发人员, 本 书同样有用

2018-10-25

The Practicing Mind Developing[Thomas_M.Sterner](英文版,练习的心态)

Of all the riches available to us in life, self-discipline is surely one of, if not the, most valuable. All things worth achieving can be accomplished with the power of self-discipline. With it we are masters of the energy weexpend in life. Without it we are victims of our own unfocused and constantly changing efforts, desires and directions.

2018-09-17

Learn More Study Less (如何高效学习 中文).epub

Of all the riches available to us in life, self-discipline is surely one of, if not the, most valuable. All things worth achieving can be accomplished with the power of self-discipline. With it we are masters of the energy we expend in life. Without it we are victims of our own unfocused and constantly changing efforts, desires and directions. Self-discipline, focus, patience, and self-awareness are interwoven threads in the fabric of both true inner peace and contentment in life. Together, living in the present moment and being process-oriented is the path that leads us to these all- important virtues. This magical path is there for everyone. It offers its untold riches to us all. “The Practicing Mind” is about remembering what you already know at some level and bringing that memory into the present, where it will serve to both place you onto the path and empower you to partake in the journey.Thomas M. Sterner

2018-08-09

(中文+英文版+源代码)Python编程:从入门到实践_Python Crash Course - Eric Matthes

为了节约其他使用者的查找资料的时间,我将《Python编程:从入门到实践_Python Crash Course - Eric Matthes》书籍的中文+英文+源代码全部打包上传,希望对有需要的人有所帮助 本书的第一部分介绍编写 Python程序所需要熟悉的基本概念, 其中很多都适用于所有编程语言, 因此它们在你的整个程序员生涯中都很有用。 第 1 章介绍在计算机中安装Python, 并运行第一个程序——它在屏幕上打印消息“Hello world!”。 第 2 章论述如何在变量中存储信息以及如何使用文本和数字。 第 3 章和第 4 章介绍列表。 使用列表能够在一个变量中存储任意数量的信息, 从而高效地处理数据: 只需几行代码, 你就能够处理数百、 数千乃至数百万个值。 第 5 章讲解使用 if语句来编写这样的代码: 在特定条件满足时采取一种措施, 而在该条件不满足时采取另一种措施。 第 6 章演示如何使用 Python字典, 将不同的信息关联起来。 与列表一样, 你也可以根据需要在字典中存储任意数量的信息。 第 7 章讲解如何从用户那里获取输入, 以让程序变成交互式的。 你还将学习 while 循环, 它不断地运行代码块, 直到指定的条件不再满足为止。 第 8 章介绍编写函数。 函数是执行特定任务的被命名的代码块, 你可以根据需要随时运行它。 第 9 章介绍类, 它让你能够模拟实物, 如小狗、 小猫、 人、 汽车、 火箭等, 让你的代码能够表示任何真实或抽象的东西。 第 10 章介绍如何使用文件, 以及如何处理错误以免程序意外地崩溃。 你需要在程序关闭前保存数据, 并在程序再次运行时读取它们。 你将学习 Python异常, 它们让你能够未雨绸 缪, 从而让程序妥善地处理错误。 第 11 章为代码编写测试, 以核实程序是否像你期望的那样工作。 这样, 扩展程序时, 你就不用担心引入新的bug。 要想脱离初级程序员的阵容, 跻身于中级程序员的行列, 测试 代码是你必须掌握的基本技能之一。

2018-08-01

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除