- 博客(6)
- 资源 (2)
- 收藏
- 关注
原创 sh xxx.sh如何在pycharm中实现(pycharm传入命令行参数)
本来tran_new.py在src文件中,cora数据集在data文件夹中,src和cora同一级。但是由于报错,我就在src中也新建了一个data,把cora扔进去了。Run->Edit Configurations 在+号中选择python。可以使用Python的subprocess模块来执行这个命令。保存后直接运行python文件即可。方法二:(该方法可以debug)
2024-02-29 09:21:59
311
1
原创 leetcode刷题指南,准备开始刷leetcode了
转自https://leetcode-cn.com/circle/article/48kq9d/暂定的刷题顺序 一. 数组 题目分类 题目编号 数组的遍历 485、495、414、628 统计数组中的元素 645、697、448、442、41、274 数组的改变、移动 453、665、283 二维数组及滚动数组 118、119、661、598、419 数组的旋转 189、396 特定顺序遍历二维数组 ...
2021-04-11 17:15:04
484
原创 《笨方法学python》习题48
lexicon.py普通版(我的):#-*-coding=utf-8-*-lexicon = [('north', 'south', 'east', 'west', 'down', 'up', 'left', 'right', 'back'), ('go', 'kill', 'eat', 'stop'), ('the', 'in', 'of', 'from', 'at', 'it'), ('
2021-02-05 13:07:43
295
原创 Python中return的用法及其与print的区别
在看《笨方法学pyhton》的习题47时,看到如下代码class Room(object):def __init__(self,name,description): self.name=name self.description=description self.paths={}def go(self,direction): return self.paths.get(direction,None)def add_paths(self,paths):
2021-02-03 20:24:20
6780
1
Everything 1.4.1.877.rar
2020-10-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人