至于每次print都出现不同的guid的原因
我猜,我猜啊 是因为你每次print的都是gh新画出来的Crv 而不是你rhino里面的那个 当然每次都不一样了
同理 你读取gh里面crv的usertext当然没结果啦
可以使用Python的csv模块来读取csv文件。首先,需要使用open()函数打开csv文件,然后使用csv.reader()函数来读取csv文件中的内容,最后使用for循环来遍历csv文件中的每一行数据。a 是字典。$ python
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AM
D64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>a[3]=5
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'a' is not defined
>>>a=[]
>>>a[3]=5
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: list assignment index out of range
>>>a={}
>>>a[3]=5
>>>a
{3: 5}
>>>