https://github.com/liuyubobobo/Play-with-Machine-Learning-Algorithms
https://github.com/liuyubobobo
jupyter调用pycharm的脚本
py脚本
def main():
print("hello python")
a = [i**2 for i in range(10)]
print(a)
print("Hard times don't create heroes, It is during "
"the hard times when the 'hero' within us is revealed.\n"
"并非困难时期造就了英雄,而是只有在困难时期,"
"我们内心的英雄才会显露出来。")
print(50*"---")
print("风雨送春归,飞雪迎春到。已是悬崖百丈冰,犹有花枝俏。"
"俏也不争春,只把春来报。待到山花烂漫时,她在丛中笑。")
if __name__== "__main__":
main()
运行
在jupyter中调用
%run D:\pythonBuffer\CNN\Test.py
注意是 % 符号
后面是pycharm中脚本的位置
运行的结果