摘要: 1.定义 * 允许0 次或多次重复 + 允许1次或多次重复 ? 允许0次或1次重复 {n,m} 允许n到m次重复 {n} 允许n次重复 ^ 匹配字符串开头$ 匹配字符串结尾. 匹配除换行符外所有字符 2.事例 *正则表达式基本操作 tuple_regexp_match ('abba', 'ab*', 阅读全文
posted @ 2024-03-05 16:12 echo-efun 阅读(169) 评论(0) 推荐(0)
摘要: 自版本18.11后,支持UTF-8 1.字符转Unicode码 tuple_ord ('s', Ord)dev_clear_window()dev_disp_text('\'s\'的Unicode码为'+Ord, 'window', 'center', 'center', 'black','box_ 阅读全文
posted @ 2024-03-05 14:26 echo-efun 阅读(62) 评论(0) 推荐(0)
摘要: *字符截取操作 String1 := 'abcdefghij'String2 := '0123456'Message := '字符截取操作'Message[1] := 'String1 := \'abcdefghij\''Message[2] := 'String2 := \'0123456\''d 阅读全文
posted @ 2024-03-05 13:20 echo-efun 阅读(39) 评论(0) 推荐(0)
摘要: 1.整形数组操作 dev_clear_window()TupleInt1 := [3,1,2,9,1]dev_disp_text('整形数组操作', 'window', 60, 0, 'white', 'box_color', '#00ffff4c')dev_disp_text('数组TupleIn 阅读全文
posted @ 2024-03-05 11:09 echo-efun 阅读(44) 评论(0) 推荐(0)
摘要: dev_clear_window()dev_disp_text('欧几里得距离计算', 'window', 200, 200, 'black','box_color', '#00ffffc0')V1 := [18.8,132.4,33,19.3]dev_disp_text('V1='+V1, 'wi 阅读全文
posted @ 2024-03-05 09:52 echo-efun 阅读(92) 评论(0) 推荐(0)
摘要: 1.周期为2pi正弦函数绘制 dev_close_window () dev_open_window (0, 0, 512, 512, 'black', WindowID) dev_set_part (0, 0, 511, 511) old_x := 0 old_y := 0 Rate:= 1 de 阅读全文
posted @ 2024-03-05 09:35 echo-efun 阅读(55) 评论(0) 推荐(0)
摘要: dev_clear_window()dev_disp_text('数128位左移两位为'+lsh(128,2), 'window', 'center', 'center', 'black','box_color', '#00ffffc0') dev_clear_window()dev_disp_te 阅读全文
posted @ 2024-03-05 09:17 echo-efun 阅读(41) 评论(0) 推荐(0)