我想要创建一个函数,根据所提供的数组将字符串大写。我的当前函数接受两个参数:要更改的字符串和对应于要更改的字母的数组。我的功能是这样的: for i in ind: s = s.replace(s[i], s[i].upper()) print("Sorry, index is not range!")当我尝试了几个例子时,这个函数似乎一开始就起作用了,例如:
capi
我需要分配一个byref参数,但是,使用Windows8x64框上的F# 4.0和.NET 4.5.2,我一直收到抱怨说,由于正在实现COM接口,This value is not mutable.无法更改签名。最小破碎示例: let bugFix1([<System.Runtime.InteropServices.Out>] ID : System.String byref) = ID <- "Hi!"
let bugFix1([<System.Runtime.InteropServices.Out>